PyDocs

Development Tools

test.support.threading_helper

The test.support.threading_helper module provides support for threading tests.
Symbols in test.support.threading_helper

c

catch_threading_exception
Context manager catching threading.Thread exception using threading.excepthook().

j

join_thread
Join a thread within timeout.

r

reap_threads
Decorator to ensure the threads are cleaned up even if the test fails.
run_concurrently
Run the worker function concurrently in multiple threads.

s

start_threads
Context manager to start threads, which is a sequence of threads.

t

threading_cleanup
Cleanup up threads not specified in original_values.
threading_setup
Return current thread count and copy of dangling threads.

w

wait_threads_exit
Context manager to wait until all threads created in the with statement exit.