diff --git a/test/test_compilation/test_compilation.py b/test/test_compilation/test_compilation.py index 3af70d19..0444efa2 100644 --- a/test/test_compilation/test_compilation.py +++ b/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@",