[flake8-bugbear] Fix all the useless expressions that are justified

This commit is contained in:
Pierre Sassoulas
2024-02-02 21:13:43 +01:00
parent fcb818b73c
commit 52fba25ff9
8 changed files with 15 additions and 16 deletions

View File

@@ -170,9 +170,9 @@ class ErrorsHelper:
def test_helper_failures() -> None:
helper = ErrorsHelper()
with pytest.raises(Exception):
helper.raise_exception
_ = helper.raise_exception
with pytest.raises(OutcomeException):
helper.raise_fail_outcome
_ = helper.raise_fail_outcome
def test_safe_getattr() -> None: