(self)
| 485 | self.boilerPlate(lock, locked) |
| 486 | |
| 487 | def testWithSemaphore(self): |
| 488 | lock = threading.Semaphore() |
| 489 | def locked(): |
| 490 | if lock.acquire(False): |
| 491 | lock.release() |
| 492 | return False |
| 493 | else: |
| 494 | return True |
| 495 | self.boilerPlate(lock, locked) |
| 496 | |
| 497 | def testWithBoundedSemaphore(self): |
| 498 | lock = threading.BoundedSemaphore() |
nothing calls this directly
no test coverage detected