We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abc2765 commit 8ad37d7Copy full SHA for 8ad37d7
tests/conftest.py
@@ -1,5 +1,7 @@
1
from __future__ import annotations
2
3
+import sys
4
+
5
import pytest
6
7
from agents.models import _openai_shared
@@ -59,3 +61,10 @@ def failing_version(*args, **kwargs):
59
61
monkeypatch.setattr(OpenAIResponsesModel, "stream_response", failing_version)
60
62
monkeypatch.setattr(OpenAIChatCompletionsModel, "get_response", failing_version)
63
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