summaryrefslogtreecommitdiff
path: root/testsuite/E90.py
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2012-12-22 20:00:38 +0100
committerFlorent Xicluna <florent.xicluna@gmail.com>2012-12-22 20:00:38 +0100
commit2f974e458edfdc0f65a0918c8ffc2e26fc363707 (patch)
treec9928738bb322fb1081dab1662c0528c91941d7b /testsuite/E90.py
parent8160aabc3a0522bee6ebba0c16f7bfee14078b4d (diff)
downloadpep8-2f974e458edfdc0f65a0918c8ffc2e26fc363707.tar.gz
Fix crash when the source file contains an invalid line ending; closes #119
Diffstat (limited to 'testsuite/E90.py')
-rw-r--r--testsuite/E90.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/E90.py b/testsuite/E90.py
index 35a91a2..80bf04f 100644
--- a/testsuite/E90.py
+++ b/testsuite/E90.py
@@ -16,4 +16,11 @@ if msg:
def lasting(self, duration=300):
progress = self._progress.setdefault('foo', {}
+#: Okay
+
+# Issue #119
+# Do not crash with Python2 if the line endswith '\r\r\n'
+EMPTY_SET = set()
+SET_TYPE = type(EMPTY_SET)
+toto = 0 + 0
#: