From c112eadc1188b7ae5e541dcb41ecec4cfc4a1289 Mon Sep 17 00:00:00 2001 From: Thor Whalen <1906276+thorwhalen@users.noreply.github.com> Date: Tue, 15 Sep 2026 12:40:01 +0200 Subject: [PATCH] Read normalizer fixtures as UTF-8 explicitly: the ASCII-art fixture broke the Windows job (cp1252) in #28 --- tests/test_normalizer.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_normalizer.py b/tests/test_normalizer.py index 40d37d1..4a13d12 100644 --- a/tests/test_normalizer.py +++ b/tests/test_normalizer.py @@ -25,7 +25,11 @@ def _case(name): - return (FIXTURES / f"{name}.in").read_text(), (FIXTURES / f"{name}.out").read_text() + """The ``.in`` and ``.out`` texts; UTF-8 explicitly, the ASCII-art fixture has box characters.""" + return ( + (FIXTURES / f"{name}.in").read_text(encoding="utf-8"), + (FIXTURES / f"{name}.out").read_text(encoding="utf-8"), + ) @pytest.mark.parametrize("name", CASES)