From 1ed4ca7e038364b3b10e3d36abb84ee034d4d94c Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Sat, 20 Jul 2024 05:27:31 +0100 Subject: [PATCH] Mark ``test_build_manpage`` as XFAIL following changes in Docutils master --- tests/test_builders/test_build_manpage.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_builders/test_build_manpage.py b/tests/test_builders/test_build_manpage.py index 0958b30f3..31d75d64d 100644 --- a/tests/test_builders/test_build_manpage.py +++ b/tests/test_builders/test_build_manpage.py @@ -7,6 +7,8 @@ from sphinx.builders.manpage import default_man_pages from sphinx.config import Config +@pytest.mark.xfail(docutils.__version_info__[:2] > (0, 21), + reason='Docutils has removed the reference key in master') @pytest.mark.sphinx('man') def test_all(app, status, warning): app.build(force_all=True) @@ -47,6 +49,8 @@ def test_man_make_section_directory(app, status, warning): assert (app.outdir / 'man1' / 'projectnamenotset.1').exists() +@pytest.mark.xfail(docutils.__version_info__[:2] > (0, 21), + reason='Docutils has removed the reference key in master') @pytest.mark.sphinx('man', testroot='directive-code') def test_captioned_code_block(app, status, warning): app.build(force_all=True)