summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2014-12-16 20:51:07 +0100
committerIan Lee <IanLee1521@gmail.com>2014-12-18 00:39:05 -0800
commit497f1db5d142ddb891504d2513d52c5f195c05ac (patch)
tree860a2cb5c331ee0e5af44d5c93f62386fecc27bb /testsuite
parente73ce7d2001f9cd3d1d6acdd1040b7e6abca77fe (diff)
downloadpep8-497f1db5d142ddb891504d2513d52c5f195c05ac.tar.gz
Do not skip physical checks if the newline is escaped; issue #319issue319
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/E50.py14
-rw-r--r--testsuite/W19.py2
2 files changed, 15 insertions, 1 deletions
diff --git a/testsuite/E50.py b/testsuite/E50.py
index 31ad6b9..f60f389 100644
--- a/testsuite/E50.py
+++ b/testsuite/E50.py
@@ -1,5 +1,19 @@
#: E501
a = '12345678901234567890123456789012345678901234567890123456789012345678901234567890'
+#: E501
+a = '1234567890123456789012345678901234567890123456789012345678901234567890' or \
+ 6
+#: E501
+a = 7 or \
+ '1234567890123456789012345678901234567890123456789012345678901234567890' or \
+ 6
+#: E501 E501
+a = 7 or \
+ '1234567890123456789012345678901234567890123456789012345678901234567890' or \
+ '1234567890123456789012345678901234567890123456789012345678901234567890' or \
+ 6
+#: E501
+a = '1234567890123456789012345678901234567890123456789012345678901234567890' # \
#: E502
a = ('123456789012345678901234567890123456789012345678901234567890123456789' \
'01234567890')
diff --git a/testsuite/W19.py b/testsuite/W19.py
index edbb1f0..afdfb76 100644
--- a/testsuite/W19.py
+++ b/testsuite/W19.py
@@ -86,7 +86,7 @@ if (a == 2 or
b == """abc def ghi
jkl mno"""):
return True
-#: E101 W191
+#: W191:2:1 W191:3:1 E101:3:2
if length > options.max_line_length:
return options.max_line_length, \
"E501 line too long (%d characters)" % length