diff options
| author | yangfl <yangfl@users.noreply.github.com> | 2020-05-01 18:28:00 +0800 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2020-05-05 00:43:24 +1000 |
| commit | 138a28dc07fdbe633c225e05bee064a6eb41b532 (patch) | |
| tree | ce4dde0bbd5eaf7b8da06fba071ba642cfffe573 /tests | |
| parent | 4ede70368722f4702320412f393a7c703cdf4276 (diff) | |
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 "<stdin>", line 1, in <module>
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).
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/thread/thread_stacksize1.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/thread/thread_stacksize1.py b/tests/thread/thread_stacksize1.py index 39fe235b2..5827237a1 100644 --- a/tests/thread/thread_stacksize1.py +++ b/tests/thread/thread_stacksize1.py @@ -9,7 +9,7 @@ import _thread if sys.implementation.name == "micropython": sz = 2 * 1024 else: - sz = 32 * 1024 + sz = 512 * 1024 def foo(): |
