diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index f8faa41ad439c4..409399871f2052 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -1999,7 +1999,7 @@ def wait_process(pid, *, exitcode, timeout=None): # process is still running dt = time.monotonic() - t0 - if dt > SHORT_TIMEOUT: + if dt > timeout: try: os.kill(pid, signal.SIGKILL) os.waitpid(pid, 0)