Skip to content
Prev Previous commit
Next Next commit
Some edits to test
  • Loading branch information
Joannah nanjekye authored and vstinner committed Aug 14, 2019
commit 35b87eb63979b1d781f7b485b717b722563c6c50
5 changes: 5 additions & 0 deletions Lib/test/libregrtest/runtest_mp.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,12 @@ def _runtest(self, test_name):
try:
stdout, stderr = popen.communicate(timeout=self.ns.timeout)
except subprocess.TimeoutExpired:
if self._killed:
# kill() has been called: communicate() fails
# on reading closed stdout/stderr
raise ExitThread
result, stdout, stderr, err_msg = self.time_result(test_name, TIMEOUT)
raise
except OSError:
if self._killed:
# kill() has been called: communicate() fails
Expand Down