diff options
-rw-r--r-- | Lib/test/test_dis.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_dis.py b/Lib/test/test_dis.py index c3b2a4f..7cda0dc 100644 --- a/Lib/test/test_dis.py +++ b/Lib/test/test_dis.py @@ -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 |