summaryrefslogtreecommitdiff
path: root/tests/thread/thread_stacksize1.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/thread/thread_stacksize1.py')
-rw-r--r--tests/thread/thread_stacksize1.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/thread/thread_stacksize1.py b/tests/thread/thread_stacksize1.py
index 5827237a1..5d25509b7 100644
--- a/tests/thread/thread_stacksize1.py
+++ b/tests/thread/thread_stacksize1.py
@@ -1,8 +1,10 @@
# test setting the thread stack size
#
# MIT license; Copyright (c) 2016 Damien P. George on behalf of Pycom Ltd
-
-import sys
+try:
+ import usys as sys
+except ImportError:
+ import sys
import _thread
# different implementations have different minimum sizes