Commit 4b49101f authored by Guido van Rossum's avatar Guido van Rossum

Don't be so strict in checking AttributeError -- the error message

recently changed.
parent 547e9520
...@@ -50,7 +50,7 @@ class Nothing: pass ...@@ -50,7 +50,7 @@ class Nothing: pass
try: try:
g(*Nothing()) g(*Nothing())
except AttributeError, attr: except AttributeError, attr:
assert attr[0] == '__len__' pass
else: else:
print "should raise AttributeError: __len__" print "should raise AttributeError: __len__"
...@@ -60,7 +60,7 @@ class Nothing: ...@@ -60,7 +60,7 @@ class Nothing:
try: try:
g(*Nothing()) g(*Nothing())
except AttributeError, attr: except AttributeError, attr:
assert attr[0] == '__getitem__' pass
else: else:
print "should raise AttributeError: __getitem__" print "should raise AttributeError: __getitem__"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment