From 4b49101f20461eb90aaa5cbec4992c989d5a36c8 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 10 Apr 2000 13:37:14 +0000 Subject: Don't be so strict in checking AttributeError -- the error message recently changed. --- Lib/test/test_extcall.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_extcall.py b/Lib/test/test_extcall.py index 74d9ef2..6cca199 100644 --- a/Lib/test/test_extcall.py +++ b/Lib/test/test_extcall.py @@ -50,7 +50,7 @@ class Nothing: pass try: g(*Nothing()) except AttributeError, attr: - assert attr[0] == '__len__' + pass else: print "should raise AttributeError: __len__" @@ -60,7 +60,7 @@ class Nothing: try: g(*Nothing()) except AttributeError, attr: - assert attr[0] == '__getitem__' + pass else: print "should raise AttributeError: __getitem__" -- cgit v0.12