diff options
author | Anthony Sottile <asottile@umich.edu> | 2020-09-11 13:07:38 -0700 |
---|---|---|
committer | Anthony Sottile <asottile@umich.edu> | 2020-09-11 13:07:38 -0700 |
commit | 2ed2baa404d9a4711b9bcc3105683cbd8679d0f8 (patch) | |
tree | 82a58310ab85dae929a5f1264b3208616169fd50 /testsuite | |
parent | 6a56d22bfa7502ea1b391a6266cbd8d2963a3a1e (diff) | |
download | pep8-2ed2baa404d9a4711b9bcc3105683cbd8679d0f8.tar.gz |
fix skipping of physical checks when file does not end in newline
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/W29.py | 5 | ||||
-rw-r--r-- | testsuite/W39.py | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/testsuite/W29.py b/testsuite/W29.py index 4050c2f..e9ad580 100644 --- a/testsuite/W29.py +++ b/testsuite/W29.py @@ -9,6 +9,11 @@ class Foo(object): #: W291:2:35 '''multiline string with trailing whitespace''' +#: W291 W292 noeol +x = 1 +#: W191 W292 noeol +if False: + pass # indented with tabs #: W292:1:36 noeol # This line doesn't have a linefeed #: W292:1:5 E225:1:2 noeol diff --git a/testsuite/W39.py b/testsuite/W39.py index 68f886b..25e05b0 100644 --- a/testsuite/W39.py +++ b/testsuite/W39.py @@ -5,7 +5,7 @@ # Two additional empty lines -#: W391:4:1 W293:3:1 W293:4:1 noeol +#: W292:4:5 W293:3:1 W293:4:1 noeol # The last lines contain space |