File: Stop-using-deprecated-sphinx.testing.path.patch

package info (click to toggle)
python-auto-pytabs 0.4.0-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 464 kB
  • sloc: python: 998; xml: 860; sh: 24; makefile: 13; javascript: 1
file content (32 lines) | stat: -rw-r--r-- 1,167 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From: Dmitry Shachnev <mitya57@debian.org>
Date: Tue, 10 Feb 2026 20:33:21 +0300
Subject: Stop using deprecated sphinx.testing.path

It is removed in Sphinx 9.

Forwarded: https://github.com/provinzkraut/AutoPyTabs/pull/9
---
 test/conftest.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/test/conftest.py b/test/conftest.py
index 58550d8..a9d8009 100644
--- a/test/conftest.py
+++ b/test/conftest.py
@@ -10,7 +10,6 @@ from typing import TYPE_CHECKING, Any
 
 import pytest
 from auto_pytabs.core import Cache
-from sphinx.testing.path import path as sphinx_path
 
 if TYPE_CHECKING:
     from unittest.mock import MagicMock
@@ -102,7 +101,7 @@ def sphinx_builder(tmp_path: Path, make_app, monkeypatch):
             [f"{key} = {value!r}" for key, value in conf_kwargs.items()]
         )
         src_path.joinpath("conf.py").write_text(content, encoding="utf8")
-        app = make_app(srcdir=sphinx_path(str(src_path.resolve())), buildername="html")
+        app = make_app(srcdir=src_path.resolve(), buildername="html")
         shutil.copy(
             "test/sphinx_ext_test_data/example.py", src_path.joinpath("example.py")
         )