diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:24:26 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:24:26 +0000 |
commit | f37a6657b15b0778b08999a2e15fda7f415f1081 (patch) | |
tree | db94c220a1883fce6d0aa33411d807b5b9095f75 /debian/patches/sphinx_7.2.patch | |
parent | Adding upstream version 4.1. (diff) | |
download | sphinxcontrib-jquery-f37a6657b15b0778b08999a2e15fda7f415f1081.tar.xz sphinxcontrib-jquery-f37a6657b15b0778b08999a2e15fda7f415f1081.zip |
Adding debian version 4.1-5.debian/4.1-5debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | debian/patches/sphinx_7.2.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/debian/patches/sphinx_7.2.patch b/debian/patches/sphinx_7.2.patch new file mode 100644 index 0000000..0efc5ad --- /dev/null +++ b/debian/patches/sphinx_7.2.patch @@ -0,0 +1,34 @@ +From: Daniel Garcia Moreno <daniel.garcia@suse.com> +Date: Mon, 4 Sep 2023 13:55:55 +0200 +Subject: Make the tests pass with Sphinx 7.2 + +This patch adapts the tests to work with Sphinx 7.2. +Modified for Debian to keep support for older Sphinx versions. + +Origin: https://github.com/sphinx-contrib/jquery/pull/27 +--- + tests/test_jquery_installed.py | 11 +++++++---- + 1 file changed, 7 insertions(+), 4 deletions(-) + +diff --git a/tests/test_jquery_installed.py b/tests/test_jquery_installed.py +index d0537d0..fba60fc 100644 +--- a/tests/test_jquery_installed.py ++++ b/tests/test_jquery_installed.py +@@ -25,10 +25,13 @@ def run_blank_app(srcdir, **kwargs): + + @pytest.fixture(scope="function") + def blank_app(tmpdir, monkeypatch): +- def inner(**kwargs): +- return run_blank_app(path(tmpdir), **kwargs) +- +- monkeypatch.setattr("sphinx.application.abspath", lambda x: x) ++ if sphinx.version_info >= (7, 2): ++ def inner(**kwargs): ++ return run_blank_app(Path(tmpdir), **kwargs) ++ else: ++ def inner(**kwargs): ++ return run_blank_app(path(tmpdir), **kwargs) ++ monkeypatch.setattr("sphinx.application.abspath", lambda x: x) + yield inner + + |