Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions pyflakes/test/test_other.py
Original file line number Diff line number Diff line change
Expand Up @@ -1650,6 +1650,15 @@ def foo():
except (tokenize.TokenError, IndentationError): pass
''')

def test_exceptUnusedAsLocals(self):
"""
Don't issue false warning when an exception is used by locals().
"""
self.flakes('''
try: raise ValueError()
except ValueError as e: locals()
''')

def test_augmentedAssignmentImportedFunctionCall(self):
"""
Consider a function that is called on the right part of an
Expand Down