From 484500d9c257f7d9dff99bef7b8d52e38faeb7ba Mon Sep 17 00:00:00 2001 From: "d.kovalenko" Date: Mon, 31 Mar 2025 12:25:01 +0300 Subject: [PATCH] pytest_runtest_makereport is updated (cleanup) Local 'rep' is not used. --- tests/conftest.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 0f65838e..e27eaeb3 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -394,10 +394,6 @@ def pytest_runtest_makereport(item: pytest.Function, call: pytest.CallInfo): assert outcome is not None assert type(outcome) == pluggy.Result # noqa: E721 - rep: pytest.TestReport = outcome.get_result() - assert rep is not None - assert type(rep) == pytest.TestReport # noqa: E721 - if call.when == "collect": return