summaryrefslogtreecommitdiff
path: root/tests/misc/recursive_iternext.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/recursive_iternext.py')
-rw-r--r--tests/misc/recursive_iternext.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/misc/recursive_iternext.py b/tests/misc/recursive_iternext.py
index 025fa425b..edb5a843f 100644
--- a/tests/misc/recursive_iternext.py
+++ b/tests/misc/recursive_iternext.py
@@ -1,4 +1,13 @@
# This tests that recursion with iternext doesn't lead to segfault.
+try:
+ enumerate
+ filter
+ map
+ max
+ zip
+except:
+ print("SKIP")
+ raise SystemExit
# We need to pick an N that is large enough to hit the recursion
# limit, but not too large that we run out of heap memory.