We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94238d4 commit 5b7789dCopy full SHA for 5b7789d
1 file changed
tests/thread/thread_stacksize1.py
@@ -6,7 +6,7 @@
6
import _thread
7
8
# different implementations have different minimum sizes
9
-if sys.implementation == 'micropython':
+if sys.implementation.name == 'micropython':
10
sz = 2 * 1024
11
else:
12
sz = 32 * 1024
@@ -20,6 +20,9 @@ def thread_entry():
20
global n_finished
21
n_finished += 1
22
23
+# reset stack size to default
24
+_thread.stack_size()
25
+
26
# test set/get of stack size
27
print(_thread.stack_size())
28
print(_thread.stack_size(sz))
0 commit comments