Skip to content

Commit 8ad37d7

Browse files
committed
skip tests using mcp on Python 3.9
1 parent abc2765 commit 8ad37d7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/conftest.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from __future__ import annotations
22

3+
import sys
4+
35
import pytest
46

57
from agents.models import _openai_shared
@@ -59,3 +61,10 @@ def failing_version(*args, **kwargs):
5961
monkeypatch.setattr(OpenAIResponsesModel, "stream_response", failing_version)
6062
monkeypatch.setattr(OpenAIChatCompletionsModel, "get_response", failing_version)
6163
monkeypatch.setattr(OpenAIChatCompletionsModel, "stream_response", failing_version)
64+
65+
66+
# Skip tests that use mcp on Python 3.9
67+
def pytest_ignore_collect(collection_path, config):
68+
if sys.version_info[:2] == (3, 9):
69+
if str(collection_path).endswith("test_visualization.py"):
70+
return True

0 commit comments

Comments
 (0)