Skip to content

Commit b3275b4

Browse files
committed
Fix windows test
Signed-off-by: Manjusaka <[email protected]>
1 parent 8af708e commit b3275b4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Lib/subprocess.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,8 +1235,10 @@ def communicate(self, input=None, timeout=None):
12351235

12361236
finally:
12371237
self._communication_started = True
1238-
1239-
sts = self.wait(timeout=self._remaining_time(endtime))
1238+
try:
1239+
sts = self.wait(timeout=self._remaining_time(endtime))
1240+
except TimeoutExpired:
1241+
raise TimeoutExpired(self.args, timeout)
12401242

12411243
return (stdout, stderr)
12421244

0 commit comments

Comments
 (0)