async def test_acquire_nowait(self): condition = Condition() condition.acquire_nowait() assert condition.locked()
async def test_condition_release(self) -> None: condition = Condition() condition.acquire_nowait() with pytest.deprecated_call(): await condition.release()