From f89f76528a8fa650846537ffb5ce912d79035e79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20B=C5=99ezina?= Date: Wed, 16 Oct 2024 14:59:55 +0200 Subject: [PATCH] mh: satisfy mypy --- pytest_mh/_private/fixtures.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pytest_mh/_private/fixtures.py b/pytest_mh/_private/fixtures.py index 1c863ab..9e5b4ce 100644 --- a/pytest_mh/_private/fixtures.py +++ b/pytest_mh/_private/fixtures.py @@ -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")