Fix #2158: test_latex_build.test_footnote and some tests fail on Windows environment with py3

This commit is contained in:
shimizukawa
2015-12-19 18:57:40 +09:00
parent 157375baa3
commit 0b0f6d66cb
2 changed files with 9 additions and 7 deletions

View File

@@ -58,12 +58,12 @@ def test_build_all():
"""))
master_doc = srcdir / 'contents.txt'
master_doc.write_bytes((master_doc.text() + dedent("""
master_doc.write_text(master_doc.text() + dedent(u"""
.. toctree::
%(test_name)s/%(test_name)s
""" % {'test_name': test_name})
).encode('utf-8'))
)
# note: no 'html' - if it's ok with dirhtml it's ok with html
for buildername in ['dirhtml', 'singlehtml', 'latex', 'texinfo', 'pickle',