circuitpython/tests/misc/recursion.py
Paul Sokolovsky 16ac4962ae tests: Add test for catching infinite function recursion.
Put into misc/ to not complicate life for builds with check disabled.
2014-06-27 00:03:56 +03:00

8 lines
84 B
Python

def foo():
foo()
try:
foo()
except RuntimeError:
print("RuntimeError")