summaryrefslogtreecommitdiff
path: root/tests/test_build_manpage.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_build_manpage.py')
-rw-r--r--tests/test_build_manpage.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/test_build_manpage.py b/tests/test_build_manpage.py
index c3c41a2ae..a017abc69 100644
--- a/tests/test_build_manpage.py
+++ b/tests/test_build_manpage.py
@@ -4,7 +4,7 @@
Test the build process with manpage builder with the test root.
- :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
+ :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
@@ -30,6 +30,13 @@ def test_all(app, status, warning):
assert 'Footnotes' not in content
+@pytest.mark.sphinx('man', testroot='basic',
+ confoverrides={'man_make_section_directory': True})
+def test_man_make_section_directory(app, status, warning):
+ app.build()
+ assert (app.outdir / '1' / 'python.1').exists()
+
+
@pytest.mark.sphinx('man', testroot='directive-code')
def test_captioned_code_block(app, status, warning):
app.builder.build_all()