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:
parent
eb101a2701
commit
b737c9cbc8
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue