summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2005-06-16 14:53:22 (GMT)
committerMichael W. Hudson <mwh@python.net>2005-06-16 14:53:22 (GMT)
commit25010f254987e743614363753479d89358ebf4b7 (patch)
treec995f81f97d7fe6d6823fb35ddb7f9a73fddb625
parent5672467b2d7b707b2157a03786f3ee73de4d0ac7 (diff)
downloadcpython-25010f254987e743614363753479d89358ebf4b7.zip
cpython-25010f254987e743614363753479d89358ebf4b7.tar.gz
cpython-25010f254987e743614363753479d89358ebf4b7.tar.bz2
backport Lib/test/test_class.py revision 1.13:
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: