summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2005-05-04 11:59:38 (GMT)
committerMichael W. Hudson <mwh@python.net>2005-05-04 11:59:38 (GMT)
commitabb103b17a5f5b633fc2abed506c20de857d2dff (patch)
tree11a3b6d14471bc79e726eaa7849c4df2bea0b303
parent7c5e618577f0c5181aa4f8dda27db5ca3cec714f (diff)
downloadcpython-abb103b17a5f5b633fc2abed506c20de857d2dff.zip
cpython-abb103b17a5f5b633fc2abed506c20de857d2dff.tar.gz
cpython-abb103b17a5f5b633fc2abed506c20de857d2dff.tar.bz2
Don't use 'is not' to compare strings.
(spotted by reading pypy-svn :)
-rw-r--r--Lib/test/test_class.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_class.py b/Lib/test/test_class.py
index a564f73..92c220e 100644
--- a/Lib/test/test_class.py
+++ b/Lib/test/test_class.py
@@ -353,7 +353,7 @@ class A:
try:
A().a # Raised AttributeError: A instance has no attribute 'a'
except AttributeError, x:
- if str(x) is not "booh":
+ if str(x) != "booh":
print "attribute error for A().a got masked:", str(x)
class E: