diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 383085ec721..ffa3bd100a4 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -1113,11 +1113,11 @@ def _communicate(self, input, endtime, orig_timeout): if self.stdout is not None: self.stdout_thread.join(self._remaining_time(endtime)) if self.stdout_thread.isAlive(): - raise TimeoutExpired(self.args) + raise TimeoutExpired(self.args, orig_timeout) if self.stderr is not None: self.stderr_thread.join(self._remaining_time(endtime)) if self.stderr_thread.isAlive(): - raise TimeoutExpired(self.args) + raise TimeoutExpired(self.args, orig_timeout) # Collect the output from and close both pipes, now that we know # both have been read successfully.