FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Test test_asyncio prints quite a few ResourceWarnings for "unclosed event loop" · Issue #99357 · python/cpython · GitHub

Repository navigation

Test test_asyncio prints quite a few ResourceWarnings for "unclosed event loop" #99357

Closed

Description

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

  1. kumaraditya303 commented on Nov 11, 2022

    Contributor

    I'll take care of the last one in #99386

  2. added a commit that references this issue on Nov 12, 2022
  3. xiaochen7 commented on Nov 12, 2022

    Contributor

    Closing event loop was missed in test_uncancel_structured_blocks, I submitted a PR #99414 to fix this : )

  4. added a commit that references this issue on Nov 12, 2022
  5. added a commit that references this issue on Nov 13, 2022
  6. Repository owner moved this from Todo to Done in asyncioon Nov 13, 2022
  7. added a commit that references this issue on Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL