python-Sphinx/alabaster-0713-compat.patch

45 lines
1.8 KiB
Diff

From 0fcd3596630b26490c4ea1999634f9f057b2244b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jean-Fran=C3=A7ois=20B?=
<2589111+jfbu@users.noreply.github.com>
Date: Sat, 21 Jan 2023 11:10:26 +0100
Subject: [PATCH] Update test_config.py::test_needs_sphinx for Alabaster 0.7.13
compat
Relates #11145
---
tests/test_config.py | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/tests/test_config.py b/tests/test_config.py
index d31fae11329..b0e2112a5e2 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -163,20 +163,20 @@ def _make_app(*args, **kw):
return _make_app
-@mock.patch.object(sphinx, '__display_version__', '1.3.4')
+@mock.patch.object(sphinx, '__display_version__', '1.6.4')
def test_needs_sphinx(make_app_with_empty_project):
make_app = make_app_with_empty_project
# micro version
- make_app(confoverrides={'needs_sphinx': '1.3.3'}) # OK: less
- make_app(confoverrides={'needs_sphinx': '1.3.4'}) # OK: equals
+ make_app(confoverrides={'needs_sphinx': '1.6.3'}) # OK: less
+ make_app(confoverrides={'needs_sphinx': '1.6.4'}) # OK: equals
with pytest.raises(VersionRequirementError):
- make_app(confoverrides={'needs_sphinx': '1.3.5'}) # NG: greater
+ make_app(confoverrides={'needs_sphinx': '1.6.5'}) # NG: greater
# minor version
- make_app(confoverrides={'needs_sphinx': '1.2'}) # OK: less
- make_app(confoverrides={'needs_sphinx': '1.3'}) # OK: equals
+ make_app(confoverrides={'needs_sphinx': '1.5'}) # OK: less
+ make_app(confoverrides={'needs_sphinx': '1.6'}) # OK: equals
with pytest.raises(VersionRequirementError):
- make_app(confoverrides={'needs_sphinx': '1.4'}) # NG: greater
+ make_app(confoverrides={'needs_sphinx': '1.7'}) # NG: greater
# major version
make_app(confoverrides={'needs_sphinx': '0'}) # OK: less