summaryrefslogtreecommitdiff
path: root/Lib/test/test_class.py
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2005-05-04 11:59:38 +0000
committerMichael W. Hudson <mwh@python.net>2005-05-04 11:59:38 +0000
commit391781d01d89f99d20dae192cf789035701271a4 (patch)
tree675c74a4c9cf362f7e4b981c36b39e07dcf03810 /Lib/test/test_class.py
parent9d506b9d99266892391407aa60e403f681434328 (diff)
downloadcpython-391781d01d89f99d20dae192cf789035701271a4.tar.gz
Don't use 'is not' to compare strings.
(spotted by reading pypy-svn :)
Diffstat (limited to 'Lib/test/test_class.py')
-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 a564f73985..92c220ef6f 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: