[Python-checkins] bpo-40094: Add missing import to wait_process() (GH-19268)

Victor Stinner webhook-mailer at python.org
Tue Mar 31 20:26:26 EDT 2020


https://github.com/python/cpython/commit/afeaea2d6e346f627b24cc9e84e2986a7266a70e
commit: afeaea2d6e346f627b24cc9e84e2986a7266a70e
branch: master
author: Victor Stinner <vstinner at python.org>
committer: GitHub <noreply at github.com>
date: 2020-04-01T02:26:19+02:00
summary:

bpo-40094: Add missing import to wait_process() (GH-19268)

files:
M Lib/test/support/__init__.py

diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py
index 5b9aebbda7971..7272d475ceb34 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()



More information about the Python-checkins mailing list