Repository navigation
test_repl: Warning -- reap_children() reaped child process 3457256 #120635
Copy link
Copy link
Closed
Labels
testsTests in the Lib/test dirTests in the Lib/test dir
Description
Activity
Sadly, I fail to reproduce the issues locally.
I managed to reproduce the issue with this change:
diff --git a/Lib/test/test_pyrepl/test_pyrepl.py b/Lib/test/test_pyrepl/test_pyrepl.py index 41ba5959a1..0c22260741 100644 --- a/Lib/test/test_pyrepl/test_pyrepl.py +++ b/Lib/test/test_pyrepl/test_pyrepl.py @@ -887,7 +887,7 @@ def run_repl(self, repl_input: str | list[str], env: dict | None = None) -> tupl os.close(master_fd) os.close(slave_fd) try: - exit_code = process.wait(timeout=SHORT_TIMEOUT) + exit_code = process.wait(timeout=1.0) except subprocess.TimeoutExpired: process.kill() exit_code = process.returncodeAnd the command:
./python -m test test_pyrepl -u all -W -F -j100 --fail-env-changed -m test_dumb_terminal_exits_cleanly -m test_exposed_globals_in_replI wrote a fix: #120676.
Metadata
Metadata
Assignees
Labels
testsTests in the Lib/test dirTests in the Lib/test dir
On the "AMD64 Debian PGO 3.x" buildbot worker, test_pyrepl fails with "env changed" because a child process is not awaited explicitly.
build: https://buildbot.python.org/all/#/builders/249/builds/8909
Linked PRs