Skip to content

test_asyncio.test_subprocess: test_stdin_broken_pipe() failed on GHA Windows x64 CI #109709

Closed

Description

@vstinner
test_stdin_broken_pipe (test.test_asyncio.test_subprocess.SubprocessProactorTests.test_stdin_broken_pipe) ... FAIL

FAIL: test_stdin_broken_pipe (test.test_asyncio.test_subprocess.SubprocessProactorTests.test_stdin_broken_pipe)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\a\cpython\cpython\Lib\test\test_asyncio\test_subprocess.py", line 298, in test_stdin_broken_pipe
    self.assertRaises((BrokenPipeError, ConnectionResetError),
AssertionError: (<class 'BrokenPipeError'>, <class 'ConnectionResetError'>) not raised by run_until_complete

build: https://github.com/python/cpython/actions/runs/6268408487/job/17024556425?pr=109701

cc @sorcio

Linked PRs

Activity

  1. vstinner commented on Sep 22, 2023

    @vstinner
    MemberAuthor

    The issue can be reproduced on FreeBSD with:

    vstinner@freebsd$ ./python -m test test_asyncio.test_subprocess -m test_stdin_broken_pipe -v -j25 --forever
    (...)
    0:00:07 load avg: 7.48 [ 20/1] test_asyncio.test_subprocess failed (1 failure)
    test_stdin_broken_pipe (test.test_asyncio.test_subprocess.SubprocessFastWatcherTests.test_stdin_broken_pipe) ... ok
    test_stdin_broken_pipe (test.test_asyncio.test_subprocess.SubprocessPidfdWatcherTests.test_stdin_broken_pipe) ... skipped 'operating system does not support pidfds'
    test_stdin_broken_pipe (test.test_asyncio.test_subprocess.SubprocessSafeWatcherTests.test_stdin_broken_pipe) ... ok
    test_stdin_broken_pipe (test.test_asyncio.test_subprocess.SubprocessThreadedWatcherTests.test_stdin_broken_pipe) ... FAIL
    
    ======================================================================
    FAIL: test_stdin_broken_pipe (test.test_asyncio.test_subprocess.SubprocessThreadedWatcherTests.test_stdin_broken_pipe)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/home/vstinner/python/main/Lib/test/test_asyncio/test_subprocess.py", line 298, in test_stdin_broken_pipe
        self.assertRaises((BrokenPipeError, ConnectionResetError),
    AssertionError: (<class 'BrokenPipeError'>, <class 'ConnectionResetError'>) not raised by run_until_complete
    
    ----------------------------------------------------------------------
    Ran 4 tests in 2.170s
    
    FAILED (failures=1, skipped=1)
    /usr/home/vstinner/python/main/Lib/asyncio/base_subprocess.py:125: ResourceWarning: unclosed transport <_UnixSubprocessTransport pid=2131 running stdin=<_UnixWritePipeTransport closed fd=7 closed>>
      _warn(f"unclosed transport {self!r}", ResourceWarning, source=self)
    ResourceWarning: Enable tracemalloc to get the object allocation traceback
    test test_asyncio.test_subprocess failed
    
  2. added 5 commits that reference this issue on Sep 22, 2023
  3. added a commit that references this issue on Sep 22, 2023
  4. added a commit that references this issue on Sep 22, 2023
  5. added a commit that references this issue on Sep 28, 2023
  6. moved this from Todo to Done in asyncioon Sep 29, 2023
  7. added a commit that references this issue on Oct 2, 2023
  8. added a commit that references this issue on Sep 2, 2024
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