Skip to content

Commit bd76060

Browse files
committed
get retcode directly
1 parent 141d491 commit bd76060

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/test/libregrtest/runtest_mp.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,7 @@ def _run_process(self, test_name: str, tmp_dir: str, stdout_fh: TextIO) -> int:
235235

236236
try:
237237
# gh-94026: stdout+stderr are written to tempfile
238-
popen.wait(timeout=self.timeout)
239-
retcode = popen.returncode
238+
retcode = popen.wait(timeout=self.timeout)
240239
assert retcode is not None
241240
return retcode
242241
except subprocess.TimeoutExpired:

0 commit comments

Comments
 (0)