Skip to content

Commit

Permalink
Address review
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Nov 15, 2024
1 parent 21fd256 commit 304065d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/test/libregrtest/run_workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,8 @@ def run(self) -> None:
def _wait_completed(self) -> None:
popen = self._popen
# only needed for mypy:
assert popen is not None, "Should never call `._popen` before `.run()`"
if popen is None:
raise ValueError("Should never call `._popen` before `.run()`")

try:
popen.wait(WAIT_COMPLETED_TIMEOUT)
Expand Down

0 comments on commit 304065d

Please sign in to comment.