fix testing on Windows.

This commit is contained in:
Takayuki Shimizukawa 2014-09-28 21:00:51 +09:00
parent 6358d62718
commit 39c843106f

View File

@ -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