diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2012-12-22 20:00:38 +0100 |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2012-12-22 20:00:38 +0100 |
commit | 2f974e458edfdc0f65a0918c8ffc2e26fc363707 (patch) | |
tree | c9928738bb322fb1081dab1662c0528c91941d7b /testsuite | |
parent | 8160aabc3a0522bee6ebba0c16f7bfee14078b4d (diff) | |
download | pep8-2f974e458edfdc0f65a0918c8ffc2e26fc363707.tar.gz |
Fix crash when the source file contains an invalid line ending; closes #119
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/E90.py | 7 |
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 #: |