Skip to content

Commit

Permalink
Use UTF-8 by default on windows to match the expected output from Smi…
Browse files Browse the repository at this point in the history
…thy.
  • Loading branch information
jonathan343 committed Aug 23, 2024
1 parent 6afd162 commit 2ec3a18
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unit/test_protocols.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,9 @@ def _load_cases(full_path):
# The format is BOTOCORE_TEST_ID=suite_id:test_id or
# BOTOCORE_TEST_ID=suite_id
suite_id, test_id = _get_suite_test_id()
all_test_data = json.load(open(full_path), object_pairs_hook=OrderedDict)
all_test_data = json.load(
open(full_path, encoding='utf-8'), object_pairs_hook=OrderedDict
)
basename = os.path.basename(full_path)
for i, test_data in enumerate(all_test_data):
if suite_id is not None and i != suite_id:
Expand Down

0 comments on commit 2ec3a18

Please sign in to comment.