File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -548,7 +548,7 @@ class FunctionScope(Scope):
548
548
"""
549
549
usesLocals = False
550
550
alwaysUsed = {'__tracebackhide__' , '__traceback_info__' ,
551
- '__traceback_supplement__' }
551
+ '__traceback_supplement__' , '__debuggerskip__' }
552
552
553
553
def __init__ (self ):
554
554
super ().__init__ ()
Original file line number Diff line number Diff line change @@ -1349,6 +1349,16 @@ def helper():
1349
1349
__tracebackhide__ = True
1350
1350
""" )
1351
1351
1352
+ def test_debuggerskipSpecialVariable (self ):
1353
+ """
1354
+ Do not warn about unused local variable __debuggerskip__, which is
1355
+ a special variable for IPython.
1356
+ """
1357
+ self .flakes ("""
1358
+ def helper():
1359
+ __debuggerskip__ = True
1360
+ """ )
1361
+
1352
1362
def test_ifexp (self ):
1353
1363
"""
1354
1364
Test C{foo if bar else baz} statements.
You can’t perform that action at this time.
0 commit comments