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.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_build_manpage.py b/tests/test_build_manpage.py
index c6139c2bf..8509684d1 100644
--- a/tests/test_build_manpage.py
+++ b/tests/test_build_manpage.py
@@ -11,7 +11,7 @@ def test_all(app, status, warning):
app.builder.build_all()
assert (app.outdir / 'sphinxtests.1').exists()
- content = (app.outdir / 'sphinxtests.1').read_text()
+ content = (app.outdir / 'sphinxtests.1').read_text(encoding='utf8')
assert r'\fBprint \fP\fIi\fP\fB\en\fP' in content
assert r'\fBmanpage\en\fP' in content
@@ -35,7 +35,7 @@ def test_all(app, status, warning):
def test_man_pages_empty_description(app, status, warning):
app.builder.build_all()
- content = (app.outdir / 'title.1').read_text()
+ content = (app.outdir / 'title.1').read_text(encoding='utf8')
assert r'title \-' not in content
@@ -49,7 +49,7 @@ def test_man_make_section_directory(app, status, warning):
@pytest.mark.sphinx('man', testroot='directive-code')
def test_captioned_code_block(app, status, warning):
app.builder.build_all()
- content = (app.outdir / 'python.1').read_text()
+ content = (app.outdir / 'python.1').read_text(encoding='utf8')
assert ('.sp\n'
'caption \\fItest\\fP rb\n'
@@ -80,5 +80,5 @@ def test_default_man_pages():
@pytest.mark.sphinx('man', testroot='markup-rubric')
def test_rubric(app, status, warning):
app.build()
- content = (app.outdir / 'python.1').read_text()
+ content = (app.outdir / 'python.1').read_text(encoding='utf8')
assert 'This is a rubric\n' in content