(self)
| 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): |
nothing calls this directly
no test coverage detected