Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
read manifest to test in utf8
  • Loading branch information
aiuto committed Aug 10, 2023
commit 0ad36bfb681bf93fa909b8ec7ef827ea20880629
4 changes: 2 additions & 2 deletions tests/mappings/manifest_test_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ def assertManifestsMatch(self, expected_path, got_path):
got_path: The path to the content we got.
"""
e_file = ContentManifestTest.run_files.Rlocation('rules_pkg/' + expected_path)
with open(e_file, mode='rb') as e_fp:
with open(e_file, mode='rb', encoding='utf-8') as e_fp:
expected = json.load(e_fp)
expected_dict = {x["dest"]: x for x in expected}
g_file = ContentManifestTest.run_files.Rlocation('rules_pkg/' + got_path)
with open(g_file, mode='rb') as g_fp:
with open(g_file, mode='rb', encoding='utf-8') as g_fp:
got = json.load(g_fp)
got_dict = {x["dest"]: x for x in got}
print(got_dict)
Expand Down