STINNER Victor <vstin...@python.org> added the comment:
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> ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46708> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com