Skip to content

Commit dcabafc

Browse files
committed
Use explicit encoding to prevent decoding errors on Windows
1 parent f6f44c3 commit dcabafc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/main_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def test_parser_main(capsys):
6262
and for the round-trip of GlyphsUnitTestSans.glyphs.
6363
"""
6464
filename = os.path.join(DATA, "GlyphsUnitTestSans.glyphs")
65-
with open(filename) as f:
65+
with open(filename, encoding="utf-8") as f:
6666
expected = f.read()
6767

6868
glyphsLib.parser.main([filename])
@@ -75,7 +75,7 @@ def test_parser_main_v3(capsys):
7575
and for the round-trip of GlyphsUnitTestSans.glyphs.
7676
"""
7777
filename = os.path.join(DATA, "GlyphsUnitTestSans3.glyphs")
78-
with open(filename) as f:
78+
with open(filename, encoding="utf-8") as f:
7979
expected = f.read()
8080

8181
glyphsLib.parser.main([filename])

0 commit comments

Comments
 (0)