Skip to content

Commit

Permalink
get retcode directly
Browse files Browse the repository at this point in the history
  • Loading branch information
tiran committed Jun 29, 2022
1 parent 141d491 commit bd76060
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Lib/test/libregrtest/runtest_mp.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,7 @@ def _run_process(self, test_name: str, tmp_dir: str, stdout_fh: TextIO) -> int:

try:
# gh-94026: stdout+stderr are written to tempfile
popen.wait(timeout=self.timeout)
retcode = popen.returncode
retcode = popen.wait(timeout=self.timeout)
assert retcode is not None
return retcode
except subprocess.TimeoutExpired:
Expand Down

0 comments on commit bd76060

Please sign in to comment.