Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit af9eb96

Browse files
committed
Issue #21768: fix NameError in test_pydescr. Patch by Claudiu Popa.
1 parent fe928de commit af9eb96

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_descr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1149,7 +1149,7 @@ class C(object):
11491149
except (TypeError, UnicodeEncodeError):
11501150
pass
11511151
else:
1152-
raise TestFailed("[chr(128)] slots not caught")
1152+
self.fail("[chr(128)] slots not caught")
11531153

11541154
# Test leaks
11551155
class Counted(object):

0 commit comments

Comments
 (0)