summaryrefslogtreecommitdiff
path: root/tests/functional/s/string_formatting_py3.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/s/string_formatting_py3.py')
-rw-r--r--tests/functional/s/string_formatting_py3.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/functional/s/string_formatting_py3.py b/tests/functional/s/string_formatting_py3.py
new file mode 100644
index 000000000..c27e9719e
--- /dev/null
+++ b/tests/functional/s/string_formatting_py3.py
@@ -0,0 +1,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))