-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Closed
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtopic-subprocessSubprocess issues.Subprocess issues.type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
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
- gh-116742 : Fix assertIn check with [None, b'BDFL'] as values for stdout #116917
- gh-116742: Fix subprocess test_check_output_timeout() #130836
- [3.13] gh-116742: Fix subprocess test_check_output_timeout() (GH-130836) #130873
- [3.12] gh-116742: Fix subprocess test_check_output_timeout() (GH-130836) #130874
Metadata
Metadata
Assignees
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtopic-subprocessSubprocess issues.Subprocess issues.type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error