Commit 7d60a979 authored by Damien George's avatar Damien George
Browse files

tests/misc/recursive_iternext: Provide more fine-grained selection of N.

To work on a variety of ports the selection of N is very specific.
parent 3f6ca4b2
# This tests that recursion with iternext doesn't lead to segfault. # This tests that recursion with iternext doesn't lead to segfault.
# 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.
try: try:
[0] * 10000 # large stack/heap, eg unix
[0] * 80000
N = 2000 N = 2000
except: except:
N = 100 try:
# medium, eg pyboard
[0] * 10000
N = 1000
except:
# small, eg esp8266
N = 100
try: try:
x = (1, 2) x = (1, 2)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment