tests/gen_yield_from_close: Use range() instead of reversed().

As a "more basic" builtin iterator, present even in smaller ports.
This commit is contained in:
Paul Sokolovsky 2017-02-15 17:05:27 +03:00
parent eb101a2701
commit b737c9cbc8
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ except RuntimeError:
# case where close is propagated up to a built-in iterator
def gen8():
g = reversed([2, 1])
g = range(2)
yield from g
g = gen8()
print(next(g))