File: test_doc_no_pytest_examples.patch

package info (click to toggle)
pydantic-settings 2.10.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,032 kB
  • sloc: python: 8,080; makefile: 33
file content (12 lines) | stat: -rw-r--r-- 537 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
Index: pydantic-settings/tests/test_docs.py
===================================================================
--- pydantic-settings.orig/tests/test_docs.py	2024-08-03 18:03:14.223883915 +0200
+++ pydantic-settings/tests/test_docs.py	2024-08-03 18:56:37.925516302 +0200
@@ -6,6 +6,7 @@
 from pathlib import Path
 
 import pytest
+pytest.importorskip("pytest_examples")
 from pytest_examples import CodeExample, EvalExample, find_examples
 from pytest_examples.config import ExamplesConfig
 from pytest_examples.lint import black_format