summaryrefslogtreecommitdiffstats
path: root/debian/patches/docutils_manpage_macros.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/docutils_manpage_macros.diff')
-rw-r--r--debian/patches/docutils_manpage_macros.diff22
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/patches/docutils_manpage_macros.diff b/debian/patches/docutils_manpage_macros.diff
new file mode 100644
index 0000000..4bf22dc
--- /dev/null
+++ b/debian/patches/docutils_manpage_macros.diff
@@ -0,0 +1,22 @@
+From: Dmitry Shachnev <mitya57@debian.org>
+Date: Thu, 3 Aug 2023 19:23:41 +0300
+Subject: Make test_build_manpage pass with docutils 0.19+dfsg-7
+
+I backported the change from upstream 0.21 to our 0.19 and 0.20 packaging.
+---
+ tests/test_build_manpage.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/test_build_manpage.py b/tests/test_build_manpage.py
+index e765644..2fc2014 100644
+--- a/tests/test_build_manpage.py
++++ b/tests/test_build_manpage.py
+@@ -52,7 +52,7 @@ def test_captioned_code_block(app, status, warning):
+ app.builder.build_all()
+ content = (app.outdir / 'python.1').read_text(encoding='utf8')
+
+- if docutils.__version_info__[:2] < (0, 21):
++ if docutils.__version_info__[:2] < (0, 19):
+ expected = """\
+ .sp
+ caption \\fItest\\fP rb