diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2012-11-05 20:40:57 +1000 |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2012-11-05 20:40:57 +1000 |
commit | 82de6d20de3ba0a198a10bc4956ad8c7f240245e (patch) | |
tree | 2a307d4bfa8d3cbff93fdd9587cc51d5622958e5 | |
parent | 90a654b1dd77ff5fb91c723181b724affbc04cf7 (diff) | |
parent | 32dd36bdceb32d72b5c4e19f9fab9953a7d041ef (diff) | |
download | cpython-git-82de6d20de3ba0a198a10bc4956ad8c7f240245e.tar.gz |
Merge from 3.3
-rw-r--r-- | Lib/test/crashers/recursion_limit_too_high.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/Lib/test/crashers/recursion_limit_too_high.py b/Lib/test/crashers/recursion_limit_too_high.py deleted file mode 100644 index ec64936a5d..0000000000 --- a/Lib/test/crashers/recursion_limit_too_high.py +++ /dev/null @@ -1,16 +0,0 @@ -# The following example may crash or not depending on the platform. -# E.g. on 32-bit Intel Linux in a "standard" configuration it seems to -# crash on Python 2.5 (but not 2.4 nor 2.3). On Windows the import -# eventually fails to find the module, possibly because we run out of -# file handles. - -# The point of this example is to show that sys.setrecursionlimit() is a -# hack, and not a robust solution. This example simply exercises a path -# where it takes many C-level recursions, consuming a lot of stack -# space, for each Python-level recursion. So 1000 times this amount of -# stack space may be too much for standard platforms already. - -import sys -if 'recursion_limit_too_high' in sys.modules: - del sys.modules['recursion_limit_too_high'] -import recursion_limit_too_high |