From: Benjamin Peterson Date: Tue, 15 Mar 2011 20:18:47 +0000 (-0500) Subject: should use 'is' here X-Git-Tag: v3.3.0a1~2903^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c217a4b71a847326ce4e6e47f1d52fe45ad005fb;p=thirdparty%2FPython%2Fcpython.git should use 'is' here --- diff --git a/Lib/test/test_dis.py b/Lib/test/test_dis.py index c3b2a4fc72b4..7cda0dced9af 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