Skip to content

Commit 6c944d9

Browse files
fix test as wait_for no longer creates
a new task so no sleep is required
1 parent 68391f8 commit 6c944d9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Lib/test/test_asyncio/test_waitfor.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@ async def inner():
237237
with self.assertRaises(FooException):
238238
await foo()
239239

240-
@unittest.skip("TODO")
241240
async def test_wait_for_self_cancellation(self):
242241
async def inner():
243242
try:
@@ -257,7 +256,6 @@ async def inner():
257256
# Test that wait_for itself is properly cancellable
258257
# even when the initial task holds up the initial cancellation.
259258
task = asyncio.create_task(wait)
260-
await asyncio.sleep(0.2)
261259
task.cancel()
262260

263261
with self.assertRaises(asyncio.CancelledError):

0 commit comments

Comments
 (0)