8000 gh-90867: test.support.wait_process() uses LONG_TIMEOUT (#99071) · python/cpython@f09da28 · GitHub
[go: up one dir, main page]

Skip to content

Commit f09da28

Browse files
authored
gh-90867: test.support.wait_process() uses LONG_TIMEOUT (#99071)
The test.support.wait_process() function now uses a timeout of LONG_TIMEOUT seconds by default, instead of SHORT_TIMEOUT. It doesn't matter if a Python buildbot is slower, it only matters that the process completes. The timeout should just be shorter than "forever".
1 parent 387f725 commit f09da28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/support/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2097,15 +2097,15 @@ def wait_process(pid, *, exitcode, timeout=None):
20972097
20982098
Raise an AssertionError if the process exit code is not equal to exitcode.
20992099
2100-
If the process runs longer than timeout seconds (SHORT_TIMEOUT by default),
2100+
If the process runs longer than timeout seconds (LONG_TIMEOUT by default),
21012101
kill the process (if signal.SIGKILL is available) and raise an
21022102
AssertionError. The timeout feature is not available on Windows.
21032103
"""
21042104
if os.name != "nt":
21052105
import signal
21062106

21072107
if timeout is None:
2108-
timeout = SHORT_TIMEOUT
2108+
timeout = LONG_TIMEOUT
21092109

21102110
start_time = time.monotonic()
21112111
for _ in sleeping_retry(timeout, error=False):

0 commit comments

Comments
 (0)
0