summaryrefslogtreecommitdiff
path: root/tests/functional/s/string/string_formatting_py3.py
blob: 6ab4d8c915cd70244476ce1d768b48913cb21db6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# pylint: disable=missing-docstring,import-error, consider-using-f-string


def issue_957_good():
    meat = ['spam', 'ham']
    print('%s%s%s' % ('eggs', *meat))


def issue_957_bad1():
    meat = ['spam', 'ham', 'monty python']
    print('%s%s%s' % ('eggs', *meat))  # [too-many-format-args]


def issue_957_bad2():
    meat = ['spam']
    print('%s%s%s' % ('eggs', *meat))  # [too-few-format-args]


def issue_957_uninferable():
    from butchery import meat # pylint: disable=import-outside-toplevel
    print('%s%s%s' % ('eggs', *meat))