(self)
| 456 | self.assertEqual(0, lock._recursion_count()) |
| 457 | |
| 458 | def test_different_thread(self): |
| 459 | # Cannot release from a different thread |
| 460 | lock = self.locktype() |
| 461 | def f(): |
| 462 | lock.acquire() |
| 463 | |
| 464 | with Bunch(f, 1, True) as bunch: |
| 465 | try: |
| 466 | self.assertRaises(RuntimeError, lock.release) |
| 467 | finally: |
| 468 | bunch.do_finish() |
| 469 | |
| 470 | def test__is_owned(self): |
| 471 | lock = self.locktype() |
nothing calls this directly
no test coverage detected