From: Terry Jan Reedy Date: Fri, 20 Jun 2014 19:16:35 +0000 (-0400) Subject: Issue #21768: fix NameError in test_pydescr. Patch by Claudiu Popa. X-Git-Tag: v3.4.2rc1~351 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=af9eb9628d833c8096e4438a48655ed07996137a;p=thirdparty%2FPython%2Fcpython.git Issue #21768: fix NameError in test_pydescr. Patch by Claudiu Popa. --- diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index 8bb7d6a4742b..26c273a4cccd 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -1149,7 +1149,7 @@ order (MRO) for bases """ except (TypeError, UnicodeEncodeError): pass else: - raise TestFailed("[chr(128)] slots not caught") + self.fail("[chr(128)] slots not caught") # Test leaks class Counted(object):