Browse Source

[test] Ensure tex and control files are read as UTF8

References #155
pull/168/head
Louis 9 years ago
parent
commit
df2f9bfea9
  1. 5
      test/test_compilation/test_compilation.py

5
test/test_compilation/test_compilation.py

@ -9,7 +9,6 @@ import sys
import subprocess
import unittest
from patacrep.encoding import open_read
from patacrep.files import path2posix
from .. import dynamic # pylint: disable=unused-import
@ -64,8 +63,8 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest):
raise unittest.SkipTest('No control file for {}'.format(songbook))
tex = "{}.tex".format(base)
with open_read(control) as expectfile:
with open_read(tex) as latexfile:
with open(control, mode="r", encoding="utf8") as expectfile:
with open(tex, mode="r", encoding="utf8") as latexfile:
expected = expectfile.read().strip()
expected = expected.replace(
"@TEST_FOLDER@",

Loading…
Cancel
Save