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 52b7dd7 commit 4d975b4Copy full SHA for 4d975b4
1 file changed
Lib/test/test_asyncio/test_base_events.py
@@ -1041,15 +1041,15 @@ async def iter_one():
1041
1042
asyncio.create_task(iter_one())
1043
return status
1044
-
+
1045
def test_shutdown_asyncgens_reports_cancelled_error(self):
1046
# gh-150866: shutdown_asyncgens silently swallowed
1047
# CancelledError raised during aclose() because the check was
1048
# isinstance(result, Exception), but CancelledError inherits
1049
# from BaseException.
1050
self.loop._process_events = mock.Mock()
1051
self.loop._write_to_self = mock.Mock()
1052
1053
async def agen_cancel():
1054
try:
1055
yield 1
0 commit comments