should use 'is' here

This commit is contained in:
Benjamin Peterson 2011-03-15 15:18:47 -05:00
parent 0de5fc51ff
commit c217a4b71a
1 changed files with 1 additions and 1 deletions

View File

@ -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