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

Skip to content

Commit 4b49101

Browse files
committed
Don't be so strict in checking AttributeError -- the error message
recently changed.
1 parent 547e952 commit 4b49101

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/test_extcall.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class Nothing: pass
5050
try:
5151
g(*Nothing())
5252
except AttributeError, attr:
53-
assert attr[0] == '__len__'
53+
pass
5454
else:
5555
print "should raise AttributeError: __len__"
5656

@@ -60,7 +60,7 @@ def __len__(self):
6060
try:
6161
g(*Nothing())
6262
except AttributeError, attr:
63-
assert attr[0] == '__getitem__'
63+
pass
6464
else:
6565
print "should raise AttributeError: __getitem__"
6666

0 commit comments

Comments
 (0)