-
- Downloads
tests/thread: Remove need to sleep to wait for completion in some tests.
Use a lock and a counter instead, and busy wait for all threads to complete. This makes test run faster and they no longer rely on the time module.
Showing
- tests/thread/thread_exc1.py 12 additions, 6 deletionstests/thread/thread_exc1.py
- tests/thread/thread_ident1.py 5 additions, 5 deletionstests/thread/thread_ident1.py
- tests/thread/thread_shared1.py 15 additions, 8 deletionstests/thread/thread_shared1.py
- tests/thread/thread_shared2.py 15 additions, 8 deletionstests/thread/thread_shared2.py
- tests/thread/thread_stacksize1.py 11 additions, 6 deletionstests/thread/thread_stacksize1.py
- tests/thread/thread_stress_recurse.py 7 additions, 5 deletionstests/thread/thread_stress_recurse.py
Please register or sign in to comment