Skip to content

test_subprocess: test_check_output_timeout flaky #116742

@colesbury

Description

@colesbury

Bug report

The test_check_output_timeout test sometimes times out before the "BDFL" string is printed to stdout.

https://github.com/python/cpython/actions/runs/8261299493/job/22598342550

 ======================================================================
FAIL: test_check_output_timeout (test.test_subprocess.ProcessTestCaseNoPoll.test_check_output_timeout)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/cpython/cpython/Lib/test/test_subprocess.py", line 286, in test_check_output_timeout
    self.assertEqual(c.exception.output, b'BDFL')
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: None != b'BDFL'

======================================================================
FAIL: test_check_output_timeout (test.test_subprocess.RunFuncTestCase.test_check_output_timeout)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/cpython/cpython/Lib/test/test_subprocess.py", line 1694, in test_check_output_timeout
    self.assertEqual(c.exception.output, b'BDFL')
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: None != b'BDFL'

----------------------------------------------------------------------

reported by @sobolevn in #116682 (comment)

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirtopic-subprocessSubprocess issues.type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions