summaryrefslogtreecommitdiff
path: root/testsuite/E22.py
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2014-03-24 19:13:43 +0100
committerFlorent Xicluna <florent.xicluna@gmail.com>2014-03-24 19:13:43 +0100
commit6ffa51ae59f2d9ecc0efbc4e46d4136fb9e80421 (patch)
tree9629c39f80461a72da6234066fea4c7584ebbdac /testsuite/E22.py
parent4afc7ae620001d0ffce7d425f220c24754513c85 (diff)
downloadpep8-6ffa51ae59f2d9ecc0efbc4e46d4136fb9e80421.tar.gz
Improve the test framework to count the errors, motivated by issue #237
Diffstat (limited to 'testsuite/E22.py')
-rw-r--r--testsuite/E22.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/testsuite/E22.py b/testsuite/E22.py
index ba93d41..f7eeaa0 100644
--- a/testsuite/E22.py
+++ b/testsuite/E22.py
@@ -1,15 +1,15 @@
#: E221
a = 12 + 3
b = 4 + 5
-#: E221
+#: E221 E221
x = 1
y = 2
long_variable = 3
-#: E221
+#: E221 E221
x[0] = 1
x[1] = 2
long_variable = 3
-#: E221
+#: E221 E221
x = f(x) + 1
y = long_variable + 2
z = x[0] + 3
@@ -23,11 +23,11 @@ long_variable = 3
#: E222
a = a + 1
b = b + 10
-#: E222
+#: E222 E222
x = -1
y = -2
long_variable = 3
-#: E222
+#: E222 E222
x[0] = 1
x[1] = 2
long_variable = 3
@@ -68,9 +68,9 @@ z = (x + 1)** y
_1kB = _1MB >>10
#: E225
_1kB = _1MB>> 10
-#: E225
+#: E225 E225
i=i+ 1
-#: E225
+#: E225 E225
i=i +1
#: E225 E226
i=i+1
@@ -86,7 +86,7 @@ c = (a+ b)*(a - b)
#: E226
z = 2**30
-#: E226
+#: E226 E226
c = (a+b) * (a-b)
#: E226
norman = True+False
@@ -94,7 +94,7 @@ norman = True+False
x = x*2 - 1
#: E226
x = x/2 - 1
-#: E226
+#: E226 E226
hypot2 = x*x + y*y
#: E226
c = (a + b)*(a - b)