[Python-checkins] cpython (3.4): Issue #21768: fix NameError in test_pydescr. Patch by Claudiu Popa.

terry.reedy python-checkins at python.org
Fri Jun 20 21:17:25 CEST 2014


http://hg.python.org/cpython/rev/ec0aae4df38b
changeset:   91291:ec0aae4df38b
branch:      3.4
parent:      91289:64f6e66d6e7a
user:        Terry Jan Reedy <tjreedy at udel.edu>
date:        Fri Jun 20 15:16:35 2014 -0400
summary:
  Issue #21768: fix NameError in test_pydescr. Patch by Claudiu Popa.

files:
  Lib/test/test_descr.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
--- a/Lib/test/test_descr.py
+++ b/Lib/test/test_descr.py
@@ -1149,7 +1149,7 @@
         except (TypeError, UnicodeEncodeError):
             pass
         else:
-            raise TestFailed("[chr(128)] slots not caught")
+            self.fail("[chr(128)] slots not caught")
 
         # Test leaks
         class Counted(object):

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list