Skip to content

Commit

Permalink
nixos/test-driver: fix return value of subtest function
Browse files Browse the repository at this point in the history
Mypy since version 1.10.0 complains about this:

> test_driver/driver.py:109: error: No return value expected  [return-value]
  • Loading branch information
mweinelt committed Jun 5, 2024
1 parent 2d9e3b2 commit ab897a8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion nixos/lib/test-driver/test_driver/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ def subtest(self, name: str) -> Iterator[None]:
with self.logger.subtest(name):
try:
yield
return True
except Exception as e:
self.logger.error(f'Test "{name}" failed with error: "{e}"')
raise e
Expand Down

0 comments on commit ab897a8

Please sign in to comment.