Skip to content

Commit

Permalink
Fixed UnicodeDecode and AssertionError in tests (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhananjaypai08 authored Dec 31, 2021
1 parent c834854 commit 8367865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def get_test_files(path, prefix):
def _test_files(path, language, is_ordinal=True):
fnx = parse_ordinal if is_ordinal else parse_number
for filename in get_test_files(path, f'{language}_'):
with open(filename, "r") as csv_file:
with open(filename, "r", encoding="utf8") as csv_file:
csv_reader = csv.DictReader(csv_file)
for row in csv_reader:
try:
Expand Down

0 comments on commit 8367865

Please sign in to comment.