circuitpython/tests/basics/gen_stack_overflow.py
2024-09-05 14:54:18 -04:00

8 lines
169 B
Python

# CIRCUITPY-CHANGE: micropython does not have this test file
def gen():
yield from gen()
try:
print(list(gen()))
except RuntimeError:
print("RuntimeError")