π The fast, Pythonic way to build MCP servers and clients.
Fix rate limit detection during teardown phase (#2757)
Jeremiah Lowin4519ef734d0d
diff --git a/tests/integration_tests/conftest.py b/tests/integration_tests/conftest.pyindex 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 = yieldreport = outcome.get_result()- # Only process actual failures during the call phase, not xfails+ # Only process actual failures during the call or teardown phase, not xfailsif (- report.when == "call"+ report.when in ("call", "teardown")and report.failedand not hasattr(report, "wasxfail")and item.module.__name__ == "tests.integration_tests.test_github_mcp_remote"