mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
should use 'is' here
This commit is contained in:
parent
0de5fc51ff
commit
c217a4b71a
1 changed files with 1 additions and 1 deletions
|
@ -276,7 +276,7 @@ class DisTests(unittest.TestCase):
|
|||
old = getattr(sys, 'last_traceback', not_defined)
|
||||
|
||||
def cleanup():
|
||||
if old != not_defined:
|
||||
if old is not not_defined:
|
||||
sys.last_traceback = old
|
||||
else:
|
||||
del sys.last_traceback
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue