summaryrefslogtreecommitdiff
path: root/tests/functional/s/string/string_formatting_py3.py
blob: 3cdd60eb254f9ffa6a20134dc7b6b219930d39d8 (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


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))