Rewrite TestChildProcessCleanup with socket-based deterministic liveness probe (#2265)

This commit is contained in:
Max Isbey 2026-03-12 12:52:32 +00:00 • committed by GitHub
commit dd52713517
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -123,6 +123,11 @@ class FallbackProcess:
"""Return the process ID."""
return self.popen.pid
@property
def returncode(self) -> int | None:
"""Return the exit code, or ``None`` if the process has not yet terminated."""
return self.popen.returncode
# ------------------------
# Updated function