GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test_create_subprocess_with_pidfd in test_asyncio.test_subprocess is not independent · Issue #109862 · python/cpython

test_create_subprocess_with_pidfd in test_asyncio.test_subprocess is not independent #109862

New issue
Copy link
New issue
Copy link
Closed
Closed
test_create_subprocess_with_pidfd in test_asyncio.test_subprocess is not independent#109862
Copy link
Labels
3.12only security fixesonly security fixes3.13only security fixesonly security fixestestsTests in the Lib/test dirTests in the Lib/test dirtopic-asynciotype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@serhiy-storchaka
serhiy-storchaka
opened on Sep 25, 2023
Issue body actions

Bug report

Bug description:

$ ./python -m test -v test_asyncio.test_subprocess -m test_create_subprocess_with_pidfd
...
test_create_subprocess_with_pidfd (test.test_asyncio.test_subprocess.GenericWatcherTests.test_create_subprocess_with_pidfd) ... /home/serhiy/py/cpython/Lib/test/test_asyncio/test_subprocess.py:980: DeprecationWarning: There is no current event loop
  asyncio.get_event_loop_policy().get_event_loop()
FAIL

======================================================================
FAIL: test_create_subprocess_with_pidfd (test.test_asyncio.test_subprocess.GenericWatcherTests.test_create_subprocess_with_pidfd)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_asyncio/test_subprocess.py", line 986, in test_create_subprocess_with_pidfd
    returncode, stdout = runner.run(main())
                         ^^^^^^^^^^^^^^^^^^
  File "/home/serhiy/py/cpython/Lib/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/serhiy/py/cpython/Lib/asyncio/base_events.py", line 664, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/home/serhiy/py/cpython/Lib/test/test_asyncio/test_subprocess.py", line 979, in main
    with self.assertRaises(RuntimeError):
AssertionError: RuntimeError not raised

Note also a deprecation warning (you need to scroll horizontally to see it):

.../Lib/test/test_asyncio/test_subprocess.py:980: DeprecationWarning: There is no current event loop

CPython versions tested on:

3.12, CPython main branch

Operating systems tested on:

No response

Linked PRs

  • gh-109862: Fix test_create_subprocess_with_pidfd when it was run separately #113991
  • [3.12] gh-109862: Fix test_create_subprocess_with_pidfd when it was run separately (GH-113991) #114072

Activity

  1. serhiy-storchaka
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    testsTests in the Lib/test dirTests in the Lib/test dir
    topic-asyncio
    3.12only security fixesonly security fixes
    3.13only security fixesonly security fixes
    on Sep 25, 2023
  2. github-project-automation
    added this to asyncioon Sep 25, 2023
  3. github-project-automation
    moved this to Todo in asyncioon Sep 25, 2023
  4. serhiy-storchaka
    added 2 commits that reference this issue on Jan 12, 2024

    pythongh-109862: Fix test_create_subprocess_with_pidfd when it was ru…

    43817bc

    gh-109862: Fix test_create_subprocess_with_pidfd when it was run sepa…

    f8a7910
  5. miss-islington
    added a commit that references this issue on Jan 15, 2024

    pythongh-109862: Fix test_create_subprocess_with_pidfd when it was ru…

    ca0b485
  6. serhiy-storchaka
    closed this as completedon Jan 15, 2024
  7. github-project-automation
    moved this from Todo to Done in asyncioon Jan 15, 2024
  8. serhiy-storchaka
    added a commit that references this issue on Jan 15, 2024

    [3.12] gh-109862: Fix test_create_subprocess_with_pidfd when it was r…

    41a94c9
  9. kulikjak
    added a commit that references this issue on Jan 22, 2024

    pythongh-109862: Fix test_create_subprocess_with_pidfd when it was ru…

    1e0e9a3
  10. aisk
    added a commit that references this issue on Feb 11, 2024

    pythongh-109862: Fix test_create_subprocess_with_pidfd when it was ru…

    49db90b
  11. Glyphack
    added a commit that references this issue on Sep 2, 2024

    pythongh-109862: Fix test_create_subprocess_with_pidfd when it was ru…

    f1abb1c
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

    3.12only security fixesonly security fixes3.13only security fixesonly security fixestestsTests in the Lib/test dirTests in the Lib/test dirtopic-asynciotype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    • asyncio
      Status
      Done
      Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.