summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2017-01-30 09:48:41 -0600
committerIan Cordasco <graffatcolmingov@gmail.com>2017-01-30 09:48:41 -0600
commita574081fd55c15f509a8c0724d40c79ac74dd2f6 (patch)
tree031bbfde9608a6a52f5f23c3a5b3c49d6ab9fc80 /testsuite
parent9f725fb0fad8919a9467834309fbd9f604280035 (diff)
downloadpep8-a574081fd55c15f509a8c0724d40c79ac74dd2f6.tar.gz
Fix regression in E302 detection
This was similar to an issue we had with E306 in which we were only checking that a line started with "def" or "class" which catches global vars like "defaults" or "classification". Closes gh-617
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/E30not.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/E30not.py b/testsuite/E30not.py
index 63ff733..00bee95 100644
--- a/testsuite/E30not.py
+++ b/testsuite/E30not.py
@@ -155,3 +155,6 @@ if __name__ == '__main__':
classification_errors = None
#: Okay
defined_properly = True
+#: Okay
+defaults = {}
+defaults.update({})