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

This commit is contained in:
Victor Stinner 2020-04-01 02:26:19 +02:00 committed by GitHub
parent 6b982c22e5
commit afeaea2d6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View 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()