summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2012-06-16 00:37:18 +0200
committerFlorent Xicluna <florent.xicluna@gmail.com>2012-06-16 00:37:18 +0200
commitbbeb3108464748f1646c331c15ca7a64b4583023 (patch)
tree4a20b911d4246f9fea37f847ddda9b97b1370634 /testsuite
parent715aec6377e5d62106a9e5a5f1289d0bd9f23cfe (diff)
downloadpep8-bbeb3108464748f1646c331c15ca7a64b4583023.tar.gz
Fix minor E12 glitches.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/E12.py7
-rw-r--r--testsuite/E12not.py7
2 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/E12.py b/testsuite/E12.py
index 7b8313b..ffd2dda 100644
--- a/testsuite/E12.py
+++ b/testsuite/E12.py
@@ -156,6 +156,10 @@ print "hello", (
"there",
# "john",
"dude")
+#: E121
+part = set_mimetype((
+ a.get('mime_type', 'text')),
+ 'default')
#: E126
troublesome_hash = {
"hash": "value",
@@ -238,6 +242,9 @@ rv.update(d=('a', 'b', 'c'),
rv.update(d=('a' + 'b', 'c'),
e=42, f=42
+ 42)
+#: E127
+input1 = {'a': {'calc': 1 + 2}, 'b': 1
+ + 42}
#: E128
rv.update(d=('a' + 'b', 'c'),
e=42, f=(42
diff --git a/testsuite/E12not.py b/testsuite/E12not.py
index 29f6492..f32a03e 100644
--- a/testsuite/E12not.py
+++ b/testsuite/E12not.py
@@ -118,6 +118,13 @@ abricot = 3 + \
4 + \
5 + 6
+part = [-1, 2, 3,
+ 4, 5, 6]
+
+part = [-1, (2, 3,
+ 4, 5, 6), 7,
+ 8, 9, 0]
+
fnct(1, 2, 3,
4, 5, 6)