From afeaea2d6e346f627b24cc9e84e2986a7266a70e Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 1 Apr 2020 02:26:19 +0200 Subject: bpo-40094: Add missing import to wait_process() (GH-19268) --- Lib/test/support/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index 5b9aebb..7272d47 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -3414,6 +3414,8 @@ def wait_process(pid, *, exitcode, timeout=None): AssertionError. The timeout feature is not available on Windows. """ if os.name != "nt": + import signal + if timeout is None: timeout = SHORT_TIMEOUT t0 = time.monotonic() -- cgit v0.12