diff options
Diffstat (limited to 'tests/thread/thread_shared1.py')
| -rw-r--r-- | tests/thread/thread_shared1.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/thread/thread_shared1.py b/tests/thread/thread_shared1.py index 251e26fae..c2e33abce 100644 --- a/tests/thread/thread_shared1.py +++ b/tests/thread/thread_shared1.py @@ -2,6 +2,7 @@ # # MIT license; Copyright (c) 2016 Damien P. George on behalf of Pycom Ltd +import time import _thread @@ -40,5 +41,5 @@ n_thread += 1 # busy wait for threads to finish while n_finished < n_thread: - pass + time.sleep(0) print(tup) |
