diff options
author | Michael W. Hudson <mwh@python.net> | 2005-05-04 11:59:38 (GMT) |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2005-05-04 11:59:38 (GMT) |
commit | abb103b17a5f5b633fc2abed506c20de857d2dff (patch) | |
tree | 11a3b6d14471bc79e726eaa7849c4df2bea0b303 /Lib/test/test_class.py | |
parent | 7c5e618577f0c5181aa4f8dda27db5ca3cec714f (diff) | |
download | cpython-abb103b17a5f5b633fc2abed506c20de857d2dff.zip cpython-abb103b17a5f5b633fc2abed506c20de857d2dff.tar.gz cpython-abb103b17a5f5b633fc2abed506c20de857d2dff.tar.bz2 |
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.py | 2 |
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: |