summaryrefslogtreecommitdiff
path: root/tests/thread/thread_ident1.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/thread/thread_ident1.py')
-rw-r--r--tests/thread/thread_ident1.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/thread/thread_ident1.py b/tests/thread/thread_ident1.py
index 2a3732eff..08cfd3eb3 100644
--- a/tests/thread/thread_ident1.py
+++ b/tests/thread/thread_ident1.py
@@ -2,6 +2,7 @@
#
# MIT license; Copyright (c) 2016 Damien P. George on behalf of Pycom Ltd
+import time
import _thread
@@ -27,6 +28,6 @@ print("main", type(tid_main) == int, tid_main != 0)
new_tid = _thread.start_new_thread(thread_entry, ())
while not finished:
- pass
+ time.sleep(0)
print("done", type(new_tid) == int, new_tid == tid)