summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-03-15 20:18:47 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-03-15 20:18:47 (GMT)
commitc217a4b71a847326ce4e6e47f1d52fe45ad005fb (patch)
tree0c47d00d8677d1c4e75a740b85d0985e4f2b8caa
parent0de5fc51ff66838b5133bf4656af6a3023232b1c (diff)
downloadcpython-c217a4b71a847326ce4e6e47f1d52fe45ad005fb.zip
cpython-c217a4b71a847326ce4e6e47f1d52fe45ad005fb.tar.gz
cpython-c217a4b71a847326ce4e6e47f1d52fe45ad005fb.tar.bz2
should use 'is' here
-rw-r--r--Lib/test/test_dis.py2
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