There was an error while loading. Please reload this page.
1 parent 1dbd492 commit ee2909eCopy full SHA for ee2909e
1 file changed
Lib/test/test_asyncio/test_tasks.py
@@ -2109,7 +2109,7 @@ def test_shield_cancel_outer(self):
2109
test_utils.run_briefly(self.loop)
2110
self.assertTrue(outer.cancelled())
2111
self.assertEqual(0, 0 if outer._callbacks is None else len(outer._callbacks))
2112
- self.assertEqual(0, 0 if inner._asyncio_awaited_by is None else len(inner._asyncio_awaited_by))
+ self.assertFalse(inner._asyncio_awaited_by)
2113
self.assertTrue({f for f, _ctx in inner._callbacks or []} <= {asyncio.tasks._log_on_exception})
2114
2115
def test_shield_cancel_outer_result(self):
0 commit comments