From 25010f254987e743614363753479d89358ebf4b7 Mon Sep 17 00:00:00 2001 From: "Michael W. Hudson" Date: Thu, 16 Jun 2005 14:53:22 +0000 Subject: [PATCH] backport Lib/test/test_class.py revision 1.13: Don't use 'is not' to compare strings. (spotted by reading pypy-svn :) --- Lib/test/test_class.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.47.3