summaryrefslogtreecommitdiff
path: root/tests/stress/recursive_gen.py
blob: 65f5d8d470f82a817bbc82f9896f8fa06ac124fd (plain)
1
2
3
4
5
6
7
8
9
# test deeply recursive generators

def gen():
    yield from gen()

try:
    list(gen())
except RuntimeError:
    print('RuntimeError')