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