Skip to content

Commit 6c09806

Browse files
committed
Quick Windows portability fix
1 parent fb81c4c commit 6c09806

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_file_checkers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ def _read_check_asserts(base_path):
7070
asserts = set()
7171
file_path = _find_check_file(base_path)
7272
if file_path:
73-
with file_path.open('r') as f:
73+
# Ensure UTF-8 so Unicode assertions (e.g., 'Ü') read correctly across platforms,
74+
# an by that we mean ... well Windows.
75+
with file_path.open('r', encoding='utf-8') as f:
7476
message = None
7577
details = []
7678
line_iter = iter(f)

0 commit comments

Comments
 (0)