Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
  • Loading branch information
sobolevn and AlexWaygood authored Nov 15, 2024
1 parent 9475401 commit a4e1071
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/test/libregrtest/run_workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def __init__(self, worker_id: int, runner: "RunWorkers") -> None:
def current_test_name(self) -> TestName:
if self.test_name is None:
raise ValueError(
'Should never call `.test_name` before calling `.run()`'
'Should never call `.current_test_name()` before calling `.run()`'
)
return self.test_name

Expand Down Expand Up @@ -426,7 +426,7 @@ def _wait_completed(self) -> None:
popen = self._popen
# only needed for mypy:
if popen is None:
raise ValueError("Should never call `._popen` before `.run()`")
raise ValueError("Should never access `._popen` before calling `.run()`")

try:
popen.wait(WAIT_COMPLETED_TIMEOUT)
Expand Down

0 comments on commit a4e1071

Please sign in to comment.