Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Actual behavior
>>>importasyncio>>>importaiohttp>>>>>>asyncdefmain():...asyncwithaiohttp.ClientSession()assession:...asyncwithsession.get('https://example.com/'):...pass...>>>asyncio.run(main())>>>exit()Exceptionignoredin:<function_ProactorBasePipeTransport.__del__at0x0000017BF133F760>Traceback (mostrecentcalllast):File"C:\Program Files\Python310\lib\asyncio\proactor_events.py",line116,in__del__self.close()File"C:\Program Files\Python310\lib\asyncio\proactor_events.py",line108,incloseself._loop.call_soon(self._call_connection_lost,None)File"C:\Program Files\Python310\lib\asyncio\base_events.py",line750,incall_soonself._check_closed()File"C:\Program Files\Python310\lib\asyncio\base_events.py",line515,in_check_closedraiseRuntimeError('Event loop is closed')RuntimeError:Eventloopisclosed
This issue was reported inaio-libs/aiohttp#4324 so the reproducer is copied from there.
Expected behavior
Normal exit without termination. There is no user-created loop to be closed manually.
Your environment
- CPython versions tested on: 3.10.4
- Operating system and architecture: Windows 10
Metadata
Metadata
Assignees
Projects
Status
Done