enable bug-bear linting rules

This commit is contained in:
Jörg Thalheim
2024-09-02 13:26:07 +02:00
parent af4b9cc2d5
commit 35839ef701
33 changed files with 214 additions and 104 deletions

View File

@@ -27,7 +27,7 @@ def test_timeout() -> None:
except Exception:
pass
else:
assert False, "should have raised TimeoutExpired"
raise AssertionError("should have raised TimeoutExpired")
def test_run_function() -> None:
@@ -45,7 +45,7 @@ def test_run_exception() -> None:
except Exception:
pass
else:
assert False, "should have raised Exception"
raise AssertionError("should have raised Exception")
def test_run_function_exception() -> None:
@@ -57,7 +57,7 @@ def test_run_function_exception() -> None:
except Exception:
pass
else:
assert False, "should have raised Exception"
raise AssertionError("should have raised Exception")
def test_run_local_non_shell() -> None: