From: Victor Stinner Date: Wed, 1 Apr 2020 00:26:19 +0000 (+0200) Subject: bpo-40094: Add missing import to wait_process() (GH-19268) X-Git-Tag: v3.9.0a6~227 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=afeaea2d6e346f627b24cc9e84e2986a7266a70e;p=thirdparty%2FPython%2Fcpython.git bpo-40094: Add missing import to wait_process() (GH-19268) --- diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index 5b9aebbda797..7272d475ceb3 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()