Commit 58c92bb6 authored by Stefan Behnel's avatar Stefan Behnel

adapt test to changes in CPython 3.4+

parent 60c30e4e
# mode: run # mode: run
# tag: generators, lambda # tag: generators, lambda
try:
from builtins import next # Py3k
except ImportError:
def next(it):
return it.next()
def test_inside_lambda(): def test_inside_lambda():
""" """
...@@ -14,8 +9,7 @@ def test_inside_lambda(): ...@@ -14,8 +9,7 @@ def test_inside_lambda():
1 1
>>> next(obj) >>> next(obj)
2 2
>>> next(obj) >>> try: next(obj)
Traceback (most recent call last): ... except StopIteration: pass
StopIteration
""" """
return lambda:((yield 1), (yield 2)) return lambda:((yield 1), (yield 2))
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