summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_descr.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2014-06-20 19:16:35 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2014-06-20 19:16:35 (GMT)
commitaf9eb9628d833c8096e4438a48655ed07996137a (patch)
treee14f2ec21b0ae5b750d935655defdc894c6e9782 /Lib/test/test_descr.py
parentfe928de955ec5043dd7c8b9388dbb0ccfabbdc80 (diff)
downloadcpython-af9eb9628d833c8096e4438a48655ed07996137a.zip
cpython-af9eb9628d833c8096e4438a48655ed07996137a.tar.gz
cpython-af9eb9628d833c8096e4438a48655ed07996137a.tar.bz2
Issue #21768: fix NameError in test_pydescr. Patch by Claudiu Popa.
Diffstat (limited to 'Lib/test/test_descr.py')
-rw-r--r--Lib/test/test_descr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
index 8bb7d6a..26c273a 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):