diff options
author | Ian Cordasco <graffatcolmingov@gmail.com> | 2017-01-30 11:08:30 -0600 |
---|---|---|
committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2017-01-30 11:12:07 -0600 |
commit | e18679274bdfce281cff60191793862bedf307b4 (patch) | |
tree | 32ce0466152f480449b64a52851bc85726c28368 | |
parent | 6837433c1a2835fa40ecfa1548408241363546c6 (diff) | |
download | pep8-e18679274bdfce281cff60191793862bedf307b4.tar.gz |
Add regression test for nested definitions
The bug was already fixed since it also affected E302 but this adds a
test to ensure it doesn't regress for nested definitions either.
Closes gh-619
-rw-r--r-- | testsuite/E30not.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/E30not.py b/testsuite/E30not.py index 00bee95..6303b3b 100644 --- a/testsuite/E30not.py +++ b/testsuite/E30not.py @@ -158,3 +158,7 @@ defined_properly = True #: Okay defaults = {} defaults.update({}) +#: Okay +def foo(x): + classification = x + definitely = not classification |