diff options
Diffstat (limited to 'tests/thread/thread_shared2.py')
| -rw-r--r-- | tests/thread/thread_shared2.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/thread/thread_shared2.py b/tests/thread/thread_shared2.py index a1223c2b9..4ce9057ca 100644 --- a/tests/thread/thread_shared2.py +++ b/tests/thread/thread_shared2.py @@ -3,6 +3,7 @@ # # MIT license; Copyright (c) 2016 Damien P. George on behalf of Pycom Ltd +import time import _thread @@ -31,5 +32,5 @@ for i in range(n_thread): # busy wait for threads to finish while n_finished < n_thread: - pass + time.sleep(0) print(lst) |
