tests: Add test for catching infinite function recursion.

Put into misc/ to not complicate life for builds with check disabled.
This commit is contained in:
Paul Sokolovsky 2014-06-26 22:54:56 +03:00
parent 7a8ab5a730
commit 16ac4962ae
1 changed files with 7 additions and 0 deletions

7
tests/misc/recursion.py Normal file
View File

@ -0,0 +1,7 @@
def foo():
foo()
try:
foo()
except RuntimeError:
print("RuntimeError")