From: Michael W. Hudson Date: Thu, 16 Jun 2005 14:53:22 +0000 (+0000) Subject: backport Lib/test/test_class.py revision 1.13: X-Git-Tag: v2.4.2c1~180 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25010f254987e743614363753479d89358ebf4b7;p=thirdparty%2FPython%2Fcpython.git backport Lib/test/test_class.py revision 1.13: Don't use 'is not' to compare strings. (spotted by reading pypy-svn :) --- diff --git a/Lib/test/test_class.py b/Lib/test/test_class.py index a564f73985ad..92c220ef6fdd 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: