It's possible that this only happens when using --with-pydebug. (And perhaps only on Mac?)
I get 8 of these:
/Users/guido/cpython/Lib/asyncio/base_events.py:703: ResourceWarning: unclosed event loop <_UnixSelectorEventLoop running=False closed=False debug=False>
_warn(f"unclosed event loop {self!r}", ResourceWarning, source=self)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
There's also this, once:
/Users/guido/cpython/Lib/test/test_asyncio/test_unix_events.py:1750: DeprecationWarning: 'get_child_watcher' is deprecated as of Python 3.12 and will be removed in Python 3.14.
watcher = policy.get_child_watcher()
Activity
kumaraditya303 commented on Nov 11, 2022
I'll take care of the last one in #99386
pythongh-99357: Close the event loop when it is no longer used in tes…
xiaochen7 commented on Nov 12, 2022
Closing event loop was missed in test_uncancel_structured_blocks, I submitted a PR #99414 to fix this : )
gh-99357: Close the event loop when it is no longer used in test_unca…
pythongh-99357: Close the event loop when it is no longer used in tes…
[3.11] gh-99357: Close the event loop when it is no longer used in te…