Commit b2b1eeda authored by Stefan Behnel's avatar Stefan Behnel

fix yield-from test in Py3.[12]

parent d313f3bc
......@@ -8,7 +8,6 @@ see <http://www.cosc.canterbury.ac.nz/greg.ewing/python/yield-from/YieldFrom-Pyt
"""
import sys
IS_PY3 = sys.version_info[0] >= 3
def _lines(trace):
for line in trace:
......@@ -523,7 +522,7 @@ def test_broken_getattr_handling():
def __getattr__(self, attr):
1/0
if IS_PY3:
if sys.version_info >= (3,3):
expected_exception = ZeroDivisionError
else:
expected_exception = AttributeError
......
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