Skip to content

Commit 1d9f6e2

Browse files
committed
async with lock
1 parent 85acf32 commit 1d9f6e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/python/test_pep492.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def test_context_manager_with_await(self):
5959
async def test(lock):
6060
await asyncio.sleep(0.01, loop=self.loop)
6161
self.assertFalse(lock.locked())
62-
with await lock as _lock:
62+
async with lock as _lock:
6363
self.assertIs(_lock, None)
6464
self.assertTrue(lock.locked())
6565
await asyncio.sleep(0.01, loop=self.loop)

0 commit comments

Comments
 (0)