Commit c4bf2bc5 authored by Stefan Behnel's avatar Stefan Behnel

fix test after changing internal method calling (test finally behaves as expected)

parent 08fd6134
...@@ -526,11 +526,6 @@ def test_broken_getattr_handling(): ...@@ -526,11 +526,6 @@ def test_broken_getattr_handling():
def __getattr__(self, attr): def __getattr__(self, attr):
1/0 1/0
if sys.version_info >= (3,3):
expected_exception = ZeroDivisionError
else:
expected_exception = AttributeError
def g(): def g():
yield from Broken() yield from Broken()
...@@ -539,7 +534,7 @@ def test_broken_getattr_handling(): ...@@ -539,7 +534,7 @@ def test_broken_getattr_handling():
gi = g() gi = g()
assert next(gi) == 1 assert next(gi) == 1
gi.send(1) gi.send(1)
except expected_exception: except ZeroDivisionError:
pass pass
else: else:
not_raised.append(1) not_raised.append(1)
......
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