should use 'is' here
This commit is contained in:
parent
0de5fc51ff
commit
c217a4b71a
|
@ -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…
Reference in New Issue