Rewrite TestChildProcessCleanup with socket-based deterministic liveness probe (#2265)
This commit is contained in:
parent
62eb08e5b2
commit
dd52713517
1 changed files with 201 additions and 258 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue