Skip to content

Commit 722fe3a

Browse files
Update test_tasks.py
1 parent ffe5106 commit 722fe3a

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

Lib/test/test_asyncio/test_tasks.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,24 +1096,6 @@ async def inner():
10961096
with self.assertRaises(FooException):
10971097
loop.run_until_complete(foo())
10981098

1099-
def test_wait_for_raises_timeout_error_if_returned_during_cancellation(self):
1100-
loop = asyncio.new_event_loop()
1101-
self.addCleanup(loop.close)
1102-
1103-
async def foo():
1104-
async def inner():
1105-
try:
1106-
await asyncio.sleep(0.2)
1107-
except asyncio.CancelledError:
1108-
return 42
1109-
1110-
inner_task = self.new_task(loop, inner())
1111-
1112-
await asyncio.wait_for(inner_task, timeout=_EPSILON)
1113-
1114-
with self.assertRaises(asyncio.TimeoutError):
1115-
loop.run_until_complete(foo())
1116-
11171099
def test_wait_for_self_cancellation(self):
11181100
loop = asyncio.new_event_loop()
11191101
self.addCleanup(loop.close)

0 commit comments

Comments
 (0)