MCPcopy Index your code
hub / github.com/python/cpython / test_starting_threads

Method test_starting_threads

Lib/test/test_thread.py:63–70  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

61 self.done_mutex.release()
62
63 def test_starting_threads(self):
64 with threading_helper.wait_threads_exit():
65 # Basic test for thread creation.
66 for i in range(NUMTASKS):
67 self.newtask()
68 verbose_print("waiting for tasks to complete...")
69 self.done_mutex.acquire()
70 verbose_print("all tasks done")
71
72 def test_stack_size(self):
73 # Various stack size tests.

Callers

nothing calls this directly

Calls 3

newtaskMethod · 0.95
verbose_printFunction · 0.70
acquireMethod · 0.45

Tested by

no test coverage detected