Commit c217a4b7 authored by Benjamin Peterson's avatar Benjamin Peterson

should use 'is' here

parent 0de5fc51
...@@ -276,7 +276,7 @@ class DisTests(unittest.TestCase): ...@@ -276,7 +276,7 @@ class DisTests(unittest.TestCase):
old = getattr(sys, 'last_traceback', not_defined) old = getattr(sys, 'last_traceback', not_defined)
def cleanup(): def cleanup():
if old != not_defined: if old is not not_defined:
sys.last_traceback = old sys.last_traceback = old
else: else:
del sys.last_traceback del sys.last_traceback
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment