summaryrefslogtreecommitdiffstatshomepage
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.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/misc/recursive_iternext.py b/tests/misc/recursive_iternext.py
index 025fa425b5..d90f177168 100644
--- a/tests/misc/recursive_iternext.py
+++ b/tests/misc/recursive_iternext.py
@@ -1,4 +1,14 @@
# This tests that recursion with iternext doesn't lead to segfault.
+try:
+ enumerate
+ filter
+ map
+ max
+ zip
+except:
+ import sys
+ print("SKIP")
+ sys.exit()
# 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.