Skip to content

Commit

Permalink
mh: satisfy mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrezina committed Oct 24, 2024
1 parent a362f5c commit f89f765
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pytest_mh/_private/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,9 +437,9 @@ def _exit(self) -> None:
self.split_log_file("teardown.log")
self.logger.flush(self.data.outcome)

errors = [x for x in errors if x is not None]
if errors:
raise TeardownExceptionGroup("One or more error occurred during test teardown", errors)
all_errors = [x for x in errors if x is not None]
if all_errors:
raise TeardownExceptionGroup("One or more error occurred during test teardown", all_errors)


@pytest.fixture(scope="function")
Expand Down

0 comments on commit f89f765

Please sign in to comment.