MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_starting_threads

Method test_starting_threads

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

newtaskMethod · 0.95
verbose_printFunction · 0.85
acquireMethod · 0.45

Tested by

no test coverage detected