We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b2d720 commit 8e2f493Copy full SHA for 8e2f493
pyflakes/test/test_other.py
@@ -1650,6 +1650,15 @@ def foo():
1650
except (tokenize.TokenError, IndentationError): pass
1651
''')
1652
1653
+ def test_exceptUnusedAsLocals(self):
1654
+ """
1655
+ Don't issue false warning when an exception is used by locals().
1656
1657
+ self.flakes('''
1658
+ try: raise ValueError()
1659
+ except ValueError as e: locals()
1660
+ ''')
1661
+
1662
def test_augmentedAssignmentImportedFunctionCall(self):
1663
"""
1664
Consider a function that is called on the right part of an
0 commit comments