Skip to content

Commit a90aa69

Browse files
committed
Code review.
1 parent 59f0516 commit a90aa69

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/test_asyncio/test_locks.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -927,9 +927,9 @@ async def c2():
927927
t1 = asyncio.create_task(c1())
928928
t2 = asyncio.create_task(c2())
929929

930-
result = await asyncio.gather(t1, t2, return_exceptions=True)
931-
self.assertTrue(result[0] is None)
932-
self.assertTrue(isinstance(result[1], asyncio.CancelledError))
930+
r1, r2 = await asyncio.gather(t1, t2, return_exceptions=True)
931+
self.assertTrue(r1 is None)
932+
self.assertTrue(isinstance(r2, asyncio.CancelledError))
933933

934934
await asyncio.wait_for(sem.acquire(), timeout=0.01)
935935

0 commit comments

Comments
 (0)