diff options
Diffstat (limited to 'Lib/test/test_extcall.py')
-rw-r--r-- | Lib/test/test_extcall.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_extcall.py b/Lib/test/test_extcall.py index 4720901..274e943 100644 --- a/Lib/test/test_extcall.py +++ b/Lib/test/test_extcall.py @@ -58,20 +58,20 @@ g(1, 2, 3, *(4, 5)) class Nothing: pass try: g(*Nothing()) -except AttributeError, attr: +except TypeError, attr: pass else: - print "should raise AttributeError: __len__" + print "should raise TypeError" class Nothing: def __len__(self): return 5 try: g(*Nothing()) -except AttributeError, attr: +except TypeError, attr: pass else: - print "should raise AttributeError: __getitem__" + print "should raise TypeError" class Nothing: def __len__(self): |