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