We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3567e94 commit 0598eedCopy full SHA for 0598eed
1 file changed
Lib/test/test_asyncio/test_tasks.py
@@ -3691,7 +3691,14 @@ async def target():
3691
await asyncio.sleep(0)
3692
3693
self.loop.run_until_complete(target())
3694
- self.assertEqual(0, len(self.loop._ready))
+
3695
+ # For windows, it's likely to see asyncio.proactor_events
3696
+ # .BaseProactorEventLoop._loop_self_reading as ready task
3697
+ # We should filter it out.
3698
+ ready_tasks = [
3699
+ i for i in self.loop._ready
3700
+ if i._callback.__name__ != "_loop_self_reading"]
3701
+ self.assertEqual(0, len(ready_tasks))
3702
3703
3704
class SleepTests(test_utils.TestCase):
0 commit comments