Skip to content

Commit 16ac496

Browse files
committed
tests: Add test for catching infinite function recursion.
Put into misc/ to not complicate life for builds with check disabled.
1 parent 7a8ab5a commit 16ac496

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/misc/recursion.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
def foo():
2+
foo()
3+
4+
try:
5+
foo()
6+
except RuntimeError:
7+
print("RuntimeError")

0 commit comments

Comments
 (0)