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

Method setUp

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

Source from the content-addressed store, hash-verified

25class BasicThreadTest(unittest.TestCase):
26
27 def setUp(self):
28 self.done_mutex = thread.allocate_lock()
29 self.done_mutex.acquire()
30 self.running_mutex = thread.allocate_lock()
31 self.random_mutex = thread.allocate_lock()
32 self.created = 0
33 self.running = 0
34 self.next_ident = 0
35
36 key = threading_helper.threading_setup()
37 self.addCleanup(threading_helper.threading_cleanup, *key)
38
39
40class ThreadRunningTests(BasicThreadTest):

Callers

nothing calls this directly

Calls 2

addCleanupMethod · 0.80
acquireMethod · 0.45

Tested by

no test coverage detected