summaryrefslogtreecommitdiff
path: root/tests/functional/string_formatting_py3.py
blob: c27e9719e4eeaa8049813b061c805f42ab11962c (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
    print('%s%s%s' % ('eggs', *meat))