]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40094: Add missing import to wait_process() (GH-19268)
authorVictor Stinner <vstinner@python.org>
Wed, 1 Apr 2020 00:26:19 +0000 (02:26 +0200)
committerGitHub <noreply@github.com>
Wed, 1 Apr 2020 00:26:19 +0000 (02:26 +0200)
Lib/test/support/__init__.py

index 5b9aebbda797195037b733c57b3520005f640c5a..7272d475ceb341c85723978d8ecb76a0afa03ae8 100644 (file)
@@ -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()