From 4519ef734d0df36502ae7a1854f9ab3c1aec956b Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Fri, 26 Dec 2025 15:50:11 -0500 Subject: [PATCH] Fix rate limit detection during teardown phase (#2757) --- tests/integration_tests/conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration_tests/conftest.py b/tests/integration_tests/conftest.py index 8bcdb9eca..c85b38e53 100644 --- a/tests/integration_tests/conftest.py +++ b/tests/integration_tests/conftest.py @@ -56,9 +56,9 @@ def pytest_runtest_makereport(item, call): outcome = yield report = outcome.get_result() - # Only process actual failures during the call phase, not xfails + # Only process actual failures during the call or teardown phase, not xfails if ( - report.when == "call" + report.when in ("call", "teardown") and report.failed and not hasattr(report, "wasxfail") and item.module.__name__ == "tests.integration_tests.test_github_mcp_remote"