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

Method setUp

Lib/test/test_dummy_threading.py:36–44  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

34 sema.release()
35
36 def setUp(self):
37 self.numtasks = 10
38 global sema
39 sema = _threading.BoundedSemaphore(value=3)
40 global mutex
41 mutex = _threading.RLock()
42 global running
43 running = 0
44 self.threads = []
45
46 def test_tasks(self):
47 for i in range(self.numtasks):

Callers

nothing calls this directly

Calls 2

BoundedSemaphoreMethod · 0.80
RLockMethod · 0.80

Tested by

no test coverage detected