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

Method setUp

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

addCleanupMethod · 0.80
acquireMethod · 0.45

Tested by

no test coverage detected