]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
should use 'is' here
authorBenjamin Peterson <benjamin@python.org>
Tue, 15 Mar 2011 20:18:47 +0000 (15:18 -0500)
committerBenjamin Peterson <benjamin@python.org>
Tue, 15 Mar 2011 20:18:47 +0000 (15:18 -0500)
Lib/test/test_dis.py

index c3b2a4fc72b43760dc868f1cebaae97a84321fc3..7cda0dced9af4121d36311b2ae564fcb593a00ea 100644 (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