]> granicus.if.org Git - python/commitdiff
Don't be so strict in checking AttributeError -- the error message
authorGuido van Rossum <guido@python.org>
Mon, 10 Apr 2000 13:37:14 +0000 (13:37 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 10 Apr 2000 13:37:14 +0000 (13:37 +0000)
recently changed.

Lib/test/test_extcall.py

index 74d9ef2aca99eca823a50d6110ad4876dd889f81..6cca1994712d00590ad7704a68964de552a081b9 100644 (file)
@@ -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__"