summaryrefslogtreecommitdiff
path: root/pylint/test/functional/string_formatting_py27.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/test/functional/string_formatting_py27.py')
-rw-r--r--pylint/test/functional/string_formatting_py27.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/pylint/test/functional/string_formatting_py27.py b/pylint/test/functional/string_formatting_py27.py
deleted file mode 100644
index eab042c07..000000000
--- a/pylint/test/functional/string_formatting_py27.py
+++ /dev/null
@@ -1,22 +0,0 @@
-"""test for Python 2 string formatting error
-"""
-from __future__ import unicode_literals
-# pylint: disable=line-too-long
-__revision__ = 1
-
-def pprint_bad():
- """Test string format """
- "{{}}".format(1) # [too-many-format-args]
- "{} {".format() # [bad-format-string]
- "{} }".format() # [bad-format-string]
- "{0} {}".format(1, 2) # [format-combined-specification]
- # +1: [missing-format-argument-key, unused-format-string-argument]
- "{a} {b}".format(a=1, c=2)
- "{} {a}".format(1, 2) # [missing-format-argument-key]
- "{} {}".format(1) # [too-few-format-args]
- "{} {}".format(1, 2, 3) # [too-many-format-args]
- # +1: [missing-format-argument-key,missing-format-argument-key,missing-format-argument-key]
- "{a} {b} {c}".format()
- "{} {}".format(a=1, b=2) # [too-few-format-args]
- # +1: [missing-format-argument-key, missing-format-argument-key]
- "{a} {b}".format(1, 2)