Skip to content

Commit

Permalink
Add regression test for nested definitions
Browse files Browse the repository at this point in the history
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 PyCQAgh-619
  • Loading branch information
sigmavirus24 committed Jan 30, 2017
1 parent 6837433 commit e186792
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions testsuite/E30not.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,7 @@ class Bar(object):
#: Okay
defaults = {}
defaults.update({})
#: Okay
def foo(x):
classification = x
definitely = not classification

0 comments on commit e186792

Please sign in to comment.