(self)
| 304 | lock.release() |
| 305 | |
| 306 | def test_state_after_timeout(self): |
| 307 | # Issue #11618: check that lock is in a proper state after a |
| 308 | # (non-zero) timeout. |
| 309 | lock = self.locktype() |
| 310 | lock.acquire() |
| 311 | self.assertFalse(lock.acquire(timeout=0.01)) |
| 312 | lock.release() |
| 313 | self.assertFalse(lock.locked()) |
| 314 | self.assertTrue(lock.acquire(blocking=False)) |
| 315 | |
| 316 | @requires_fork |
| 317 | def test_at_fork_reinit(self): |
nothing calls this directly
no test coverage detected