From 39c843106f034a747c97a9ddb08ee099047a7840 Mon Sep 17 00:00:00 2001 From: Takayuki Shimizukawa Date: Sun, 28 Sep 2014 21:00:51 +0900 Subject: [PATCH] fix testing on Windows. --- tests/test_build_latex.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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