Skip to content

Commit d0e7a15

Browse files
authored
Require pydantic 2.7 for test_mcp (#970)
1 parent 6c10389 commit d0e7a15

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/otel_integrations/test_openai_agents.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
import logfire
1818
from logfire._internal.exporters.test import TestExporter
19+
from logfire._internal.utils import get_version
1920

2021
try:
2122
from agents import (
@@ -3585,7 +3586,7 @@ async def test_voice_pipeline(exporter: TestExporter, vcr_allow_bytes: None):
35853586
@pytest.mark.vcr()
35863587
@pytest.mark.anyio
35873588
@pytest.mark.skipif(sys.version_info < (3, 10), reason='Requires Python 3.10 or higher')
3588-
@pytest.mark.skipif(pydantic.__version__.startswith('2.4.'), reason='Requires Pydantic 2.5 or higher')
3589+
@pytest.mark.skipif(get_version(pydantic.__version__) < get_version('2.7'), reason='Requires Pydantic 2.7 or higher')
35893590
async def test_mcp(exporter: TestExporter):
35903591
from agents.mcp.server import _MCPServerWithClientSession # type: ignore
35913592
from mcp.server.fastmcp import FastMCP

0 commit comments

Comments
 (0)