This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients asvetlov, vstinner, yselivanov
Date 2022-02-10.11:55:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1644494112.15.0.125118944314.issue46708@roundup.psfhosted.org>
In-reply-to
Content
By default, asyncio.events._event_loop_policy is None:

$ ./python -i
>>> import asyncio; asyncio.events._event_loop_policy is None
True


After running the test, it changes:

vstinner@apu$ ./python -i
Python 3.11.0a5+ (heads/main:46328d8ae6, Feb  9 2022, 21:25:58) [GCC 11.2.1 20211203 (Red Hat 11.2.1-7)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import asyncio; asyncio.events._event_loop_policy is None
True
>>> 
vstinner@apu$ ./python -i -m test test_asyncio -m test_sock_client_fail
(...)
Tests result: SUCCESS
(...)
SystemExit: 0
>>> import asyncio; asyncio.events._event_loop_policy
<asyncio.unix_events._UnixDefaultEventLoopPolicy object at 0x7ff7286e7530>
History
Date User Action Args
2022-02-10 11:55:12vstinnersetrecipients: + vstinner, asvetlov, yselivanov
2022-02-10 11:55:12vstinnersetmessageid: <1644494112.15.0.125118944314.issue46708@roundup.psfhosted.org>
2022-02-10 11:55:12vstinnerlinkissue46708 messages
2022-02-10 11:55:12vstinnercreate