micropython/tests/stress/recursive_gen.py

10 lines
137 B
Python
Raw Normal View History

# test deeply recursive generators
def gen():
yield from gen()
try:
list(gen())
except RuntimeError:
print('RuntimeError')