summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2017-01-30 11:08:30 -0600
committerIan Cordasco <graffatcolmingov@gmail.com>2017-01-30 11:12:07 -0600
commite18679274bdfce281cff60191793862bedf307b4 (patch)
tree32ce0466152f480449b64a52851bc85726c28368
parent6837433c1a2835fa40ecfa1548408241363546c6 (diff)
downloadpep8-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.py4
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