We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f6ca4b commit 7d60a97Copy full SHA for 7d60a97
1 file changed
tests/misc/recursive_iternext.py
@@ -1,10 +1,19 @@
1
# This tests that recursion with iternext doesn't lead to segfault.
2
3
+# We need to pick an N that is large enough to hit the recursion
4
+# limit, but not too large that we run out of heap memory.
5
try:
- [0] * 10000
6
+ # large stack/heap, eg unix
7
+ [0] * 80000
8
N = 2000
9
except:
- N = 100
10
+ try:
11
+ # medium, eg pyboard
12
+ [0] * 10000
13
+ N = 1000
14
+ except:
15
+ # small, eg esp8266
16
+ N = 100
17
18
19
x = (1, 2)
0 commit comments