Kaydet (Commit) 91156ff3 authored tarafından Reid Kleckner's avatar Reid Kleckner

Fix timeout error message on windows to not be in milliseconds.

üst 0fd59acc
......@@ -1068,11 +1068,12 @@ class Popen(object):
if endtime is not None:
timeout = self._remaining_time(endtime)
if timeout is None:
timeout = _subprocess.INFINITE
timeout_millis = _subprocess.INFINITE
else:
timeout = int(timeout * 1000)
timeout_millis = int(timeout * 1000)
if self.returncode is None:
result = _subprocess.WaitForSingleObject(self._handle, timeout)
result = _subprocess.WaitForSingleObject(self._handle,
timeout_millis)
if result == _subprocess.WAIT_TIMEOUT:
raise TimeoutExpired(self.args, timeout)
self.returncode = _subprocess.GetExitCodeProcess(self._handle)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment