Skip to content

Commit 4fc753d

Browse files
committed
check pydantic version
1 parent 3717d8f commit 4fc753d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/otel_integrations/test_langchain.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
import os
22
import sys
33

4+
import pydantic
45
import pytest
56
from dirty_equals import IsPartialDict
67
from inline_snapshot import snapshot
78

89
from logfire._internal.exporters.test import TestExporter
10+
from logfire._internal.utils import get_version
911

1012
os.environ['LANGSMITH_OTEL_ENABLED'] = 'true'
1113
os.environ['LANGSMITH_TRACING'] = 'true'
1214

13-
pytestmark = pytest.mark.skipif(sys.version_info < (3, 9), reason='Langgraph does not support 3.8')
15+
pytestmark = pytest.mark.skipif(
16+
sys.version_info < (3, 9) or get_version(pydantic.__version__) < get_version('2.5.0'),
17+
reason='Langgraph does not support 3.8',
18+
)
1419

1520

1621
@pytest.mark.vcr()

0 commit comments

Comments
 (0)