Exemplo n.º 1
0
 async def test_acquire_nowait(self):
     condition = Condition()
     condition.acquire_nowait()
     assert condition.locked()
Exemplo n.º 2
0
 async def test_condition_release(self) -> None:
     condition = Condition()
     condition.acquire_nowait()
     with pytest.deprecated_call():
         await condition.release()