mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 15:19:10 +02:00
Fix rate limit detection during teardown phase (#2757)
This commit is contained in:
parent
650b103dbf
commit
4519ef734d
1 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue