ยปCore Development>Code coverage>Lib/test/crashers/compiler_recursion.py

Python code coverage for Lib/test/crashers/compiler_recursion.py

#countcontent
1n/a"""
2n/aThe compiler (>= 2.5) recurses happily until it blows the stack.
3n/a
4n/aRecorded on the tracker as http://bugs.python.org/issue11383
5n/a"""
6n/a
7n/a# The variant below blows up in compiler_call, but there are assorted
8n/a# other variations that blow up in other functions
9n/a# e.g. '1*'*10**5+'1' will die in compiler_visit_expr
10n/a
11n/a# The exact limit to destroy the stack will vary by platform
12n/a# but 10M should do the trick even with huge stack allocations
13n/acompile('()'*10**7, '?', 'exec')