diff options
author | Ian Lee <IanLee1521@gmail.com> | 2015-01-07 00:06:59 -0800 |
---|---|---|
committer | Ian Lee <IanLee1521@gmail.com> | 2015-01-07 00:06:59 -0800 |
commit | f4a2676edb3d37628db55c857f307416dc4a5bf4 (patch) | |
tree | 64e44c5b06ef2b1fd76c478c802f111f4a18d261 | |
parent | 510003502b5e067b927e9a62b69937cd9b0eff6e (diff) | |
download | pep8-f4a2676edb3d37628db55c857f307416dc4a5bf4.tar.gz |
Added failing tests for issue #366
pep8 should ignore whitespace errors E30 when evaluating non-top level code.
-rw-r--r-- | testsuite/E30not.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/E30not.py b/testsuite/E30not.py index 0fd8fb0..c1df60a 100644 --- a/testsuite/E30not.py +++ b/testsuite/E30not.py @@ -6,6 +6,22 @@ class X: def foo(): pass #: Okay +if True: + def a(): + pass + + + def b(): + pass +#: Okay +if True: + class foo(): + pass + + + class bar(): + pass +#: Okay # -*- coding: utf-8 -*- class X: pass |