Skip to content

Commit e0fa359

Browse files
committed
Workaround test_docs.py test failures caused by incompatible output with Pydantic 2.10.
1 parent 6666524 commit e0fa359

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_docs.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
import sys
66
from pathlib import Path
77

8+
import pydantic
89
import pytest
10+
from packaging import version
911
from pytest_examples import CodeExample, EvalExample, find_examples
1012
from pytest_examples.config import ExamplesConfig
1113
from pytest_examples.lint import black_format
@@ -20,6 +22,9 @@ def skip_docs_tests():
2022
if platform.python_implementation() != 'CPython':
2123
return 'not cpython'
2224

25+
if version.parse(pydantic.__version__) < version.parse('2.10'):
26+
return 'old version of pydantic'
27+
2328

2429
class GroupModuleGlobals:
2530
def __init__(self) -> None:

0 commit comments

Comments
 (0)