Skip to content

Commit

Permalink
tests/thread/thread_stacksize1.py: Increase stack size for CPython.
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
yangfl authored and pfalcon committed May 8, 2020
1 parent 9c05112 commit e24fe8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/thread/thread_stacksize1.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
if sys.implementation.name == "micropython":
sz = 2 * 1024
else:
sz = 32 * 1024
sz = 512 * 1024


def foo():
Expand Down

0 comments on commit e24fe8f

Please sign in to comment.