diff --git a/tests/test_build_latex.py b/tests/test_build_latex.py index 9131ede01..ae347a8e6 100644 --- a/tests/test_build_latex.py +++ b/tests/test_build_latex.py @@ -97,4 +97,5 @@ def test_latex(app, status, warning): def test_latex_add_latex_package(app, status, warning): app.add_latex_package('foo') app.builder.build_all() - assert '\\usepackage{foo}' in (app.outdir / 'SphinxTests.tex').text() + result = (app.outdir / 'SphinxTests.tex').text(encoding='utf8') + assert '\\usepackage{foo}' in result