Merge pull request #10051 from tk0miya/9777_quotes_in_manpage

test: manpage: double quotes are escaped since docutils-0.18
This commit is contained in:
Takeshi KOMIYA 2022-01-03 12:16:28 +09:00 committed by GitHub
commit 6402acde81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,8 @@
import pytest
from html5lib import HTMLParser
from sphinx.util import docutils
@pytest.mark.sphinx(buildername='html', testroot='smartquotes', freshenv=True)
def test_basic(app, status, warning):
@ -51,7 +53,10 @@ def test_man_builder(app, status, warning):
app.build()
content = (app.outdir / 'python.1').read_text()
assert '\\-\\- "Sphinx" is a tool that makes it easy ...' in content
if docutils.__version_info__ > (0, 18):
assert r'\-\- \(dqSphinx\(dq is a tool that makes it easy ...' in content
else:
assert r'\-\- "Sphinx" is a tool that makes it easy ...' in content
@pytest.mark.sphinx(buildername='latex', testroot='smartquotes', freshenv=True)