From e24fe8ffb1f6aec41692a3ee97e09caa955c074f Mon Sep 17 00:00:00 2001 From: yangfl Date: Fri, 1 May 2020 18:28:00 +0800 Subject: [PATCH] tests/thread/thread_stacksize1.py: Increase stack size for CPython. On arm64 with CPython: >>> _thread.stack_size(32*1024) Traceback (most recent call last): File "", line 1, in ValueError: size not valid: 32768 bytes So increase the CPython value in the test to 512k so it runs on more systems (on modern Linux the default stack size is usually 8MB). --- tests/thread/thread_stacksize1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/thread/thread_stacksize1.py b/tests/thread/thread_stacksize1.py index 39fe235b22..5827237a17 100644 --- a/tests/thread/thread_stacksize1.py +++ b/tests/thread/thread_stacksize1.py @@ -9,7 +9,7 @@ if sys.implementation.name == "micropython": sz = 2 * 1024 else: - sz = 32 * 1024 + sz = 512 * 1024 def foo():