File: replace-obsolete-sphinx.testing.path-with-pathlib.patch

package info (click to toggle)
sphinxcontrib-youtube 1.4.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 240 kB
  • sloc: python: 408; makefile: 18; sh: 17
file content (29 lines) | stat: -rw-r--r-- 884 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
From: "David A. Ham" <david.ham@imperial.ac.uk>
Date: Thu, 22 Jan 2026 14:14:30 +0000
Subject: replace obsolete sphinx.testing.path with pathlib

(cherry picked from commit 1d7119277998afc51c6bd7300da6e32026ecf706)
---
 tests/conftest.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/conftest.py b/tests/conftest.py
index db50b26..fbb4604 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,7 +1,8 @@
 """Pytest configuration."""
 
+from pathlib import Path
+
 import pytest
-from sphinx.testing.path import path
 
 pytest_plugins = "sphinx.testing.fixtures"
 
@@ -9,4 +10,4 @@ pytest_plugins = "sphinx.testing.fixtures"
 @pytest.fixture(scope="session")
 def rootdir():
     """Get the root directory for the whole test session."""
-    return path(__file__).parent.abspath() / "roots"
+    return Path(__file__).parent.absolute() / "roots"