Skip to content
Snippets Groups Projects
Commit 5b7789d5 authored by Damien George's avatar Damien George
Browse files

tests/thread: Make stack-size test run correctly and reliable on uPy.

parent 94238d4a
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ import sys
import _thread
# different implementations have different minimum sizes
if sys.implementation == 'micropython':
if sys.implementation.name == 'micropython':
sz = 2 * 1024
else:
sz = 32 * 1024
......@@ -20,6 +20,9 @@ def thread_entry():
global n_finished
n_finished += 1
# reset stack size to default
_thread.stack_size()
# test set/get of stack size
print(_thread.stack_size())
print(_thread.stack_size(sz))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment