builder_test: open with UTF-8 encoding to fix failing Appveyor tests

https://ci.appveyor.com/project/fonttools/fonttools/build/1.0.259/job/yi83cj0hhid3asb8
This commit is contained in:
Cosimo Lupo 2016-12-20 12:47:31 +00:00
parent 3c2cc8e6aa
commit 934cbd72be
No known key found for this signature in database
GPG Key ID: B61AAAD0B53A6419

View File

@ -135,7 +135,7 @@ class BuilderTest(unittest.TestCase):
p = Parser(f)
doc = p.parse()
tlines = self.normal_fea(doc.asFea().split("\n"))
with open(f) as ofile:
with open(f, "r", encoding="utf-8") as ofile:
olines = self.normal_fea(ofile.readlines())
if olines != tlines:
for line in difflib.unified_diff(olines, tlines):