summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorshimizukawa <shimizukawa@gmail.com>2014-09-28 21:00:51 +0900
committershimizukawa <shimizukawa@gmail.com>2014-09-28 21:00:51 +0900
commit9f14215691e5e34c095e29818cceca5ebf11f348 (patch)
treea60feea3bae8f267a1e44e7ecbb41d0fa27b161f /tests
parent497b556be68ef7e577e7db8c2e98bd05f3a118ed (diff)
downloadsphinx-9f14215691e5e34c095e29818cceca5ebf11f348.tar.gz
fix testing on Windows.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_build_latex.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_build_latex.py b/tests/test_build_latex.py
index 9131ede0..ae347a8e 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