mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
nixos/test-driver: fix return value of subtest function
Mypy since version 1.10.0 complains about this: > test_driver/driver.py:109: error: No return value expected [return-value]
This commit is contained in:
parent
2d9e3b2a22
commit
ab897a8c62
@ -106,7 +106,6 @@ class Driver:
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user