Skip to content

Commit e21d592

Browse files
committed
fix: specify utf-8 encoding when reading test files for Windows
1 parent a70eda2 commit e21d592

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tn/chinese/test/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def parse_test_case(file_name):
1919
file = os.path.dirname(os.path.abspath(__file__)) + os.path.sep + file_name
2020

2121
delimiter = "=>"
22-
with open(file) as fin:
22+
with open(file, encoding="utf-8") as fin:
2323
for line in fin:
2424
assert delimiter in line
2525
arr = line.strip().split(delimiter)

0 commit comments

Comments
 (0)