summaryrefslogtreecommitdiff
path: root/testsuite/E50.py
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2012-05-27 11:48:06 +0200
committerFlorent Xicluna <florent.xicluna@gmail.com>2012-05-27 11:48:06 +0200
commitd2e1de033a03e150ae7b4affee3f028cd1173d7a (patch)
treefc55d2355c2d0b5bbfd1bd1af759bb036fca7c85 /testsuite/E50.py
parent23339acd1c256bdbba5c10ddfbd704b7c220c242 (diff)
downloadpep8-d2e1de033a03e150ae7b4affee3f028cd1173d7a.tar.gz
Add E502 for extraneous backslashes.
Diffstat (limited to 'testsuite/E50.py')
-rw-r--r--testsuite/E50.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/testsuite/E50.py b/testsuite/E50.py
index 1c26e4f..1ddfbf0 100644
--- a/testsuite/E50.py
+++ b/testsuite/E50.py
@@ -1,2 +1,24 @@
#: E501
a = '12345678901234567890123456789012345678901234567890123456789012345678901234567890'
+#: E502
+a = ('123456789012345678901234567890123456789012345678901234567890123456789' \
+ '01234567890')
+#
+#: Okay
+a = ('123456789012345678901234567890123456789012345678901234567890123456789'
+ '01234567890')
+#
+#: Okay
+a = '123456789012345678901234567890123456789012345678901234567890123456789' \
+ '1234567890123456789012345678901234567890123456789012345678901234' \
+ '5678901234567890'
+#
+#: Okay
+if aaa:
+ pass
+elif bbb or \
+ ccc:
+ pass
+
+ddd = \
+ ccc