(self)
| 35 | self.assertTrue(RGX_REPR.match(repr(lock))) |
| 36 | |
| 37 | async def test_lock(self): |
| 38 | lock = asyncio.Lock() |
| 39 | |
| 40 | with self.assertRaisesRegex( |
| 41 | TypeError, |
| 42 | "'Lock' object can't be awaited" |
| 43 | ): |
| 44 | await lock |
| 45 | |
| 46 | self.assertFalse(lock.locked()) |
| 47 | |
| 48 | async def test_lock_doesnt_accept_loop_parameter(self): |
| 49 | primitives_cls = [ |
nothing calls this directly
no test coverage detected