From 74fdd34f4d1912b506b2e640f52b3606dad4a3aa Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Sat, 14 Mar 2020 20:03:14 +0330 Subject: [PATCH] [test] make run-tests.py work on Windows --- test/shaping/run-tests.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/shaping/run-tests.py b/test/shaping/run-tests.py index 0de1f6950..be5b45882 100755 --- a/test/shaping/run-tests.py +++ b/test/shaping/run-tests.py @@ -48,7 +48,7 @@ for filename in args: if filename == '-': f = sys.stdin else: - f = open (filename) + f = open (filename, encoding='utf8') for line in f: comment = False @@ -67,6 +67,9 @@ for filename in args: fontfile, options, unicodes, glyphs_expected = line.split (":") if fontfile.startswith ('/') or fontfile.startswith ('"/'): + s.name == 'nt': # Skip on Window + continue + fontfile, expected_hash = fontfile.split('@') try: