From abb103b17a5f5b633fc2abed506c20de857d2dff Mon Sep 17 00:00:00 2001 From: "Michael W. Hudson" Date: Wed, 4 May 2005 11:59:38 +0000 Subject: [PATCH] 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 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: -- 2.49.0