diff options
author | Victor Stinner <vstinner@python.org> | 2020-04-01 00:26:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-01 00:26:19 (GMT) |
commit | afeaea2d6e346f627b24cc9e84e2986a7266a70e (patch) | |
tree | d32ddf7d4953659dce26d30f3d0923f3bb9c336c | |
parent | 6b982c22e5fdbfecc24e440515b63f7253f695c4 (diff) | |
download | cpython-afeaea2d6e346f627b24cc9e84e2986a7266a70e.zip cpython-afeaea2d6e346f627b24cc9e84e2986a7266a70e.tar.gz cpython-afeaea2d6e346f627b24cc9e84e2986a7266a70e.tar.bz2 |
bpo-40094: Add missing import to wait_process() (GH-19268)
-rw-r--r-- | Lib/test/support/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
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() |