From be1ab129c9b8663be8d4cd9d5aea0a4c587a16ba Mon Sep 17 00:00:00 2001 From: saphid <4596216+saphid@users.noreply.github.com> Date: Tue, 29 Sep 2026 11:33:34 +1000 Subject: [PATCH] Tests: read the page as UTF-8 (Windows' default codec can't read its arrows) Co-Authored-By: Claude Opus 5.5 (1M context) --- tests/test_comfort_ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_comfort_ui.py b/tests/test_comfort_ui.py index a208087..2d75b36 100644 --- a/tests/test_comfort_ui.py +++ b/tests/test_comfort_ui.py @@ -10,7 +10,7 @@ ROOT = pathlib.Path(__file__).resolve().parents[1] @unittest.skipUnless(shutil.which('node'), 'Node exercises the shared page JS') class ComfortUI(unittest.TestCase): def test_notification_failure_survives_poll_until_success(self): - page = (ROOT / 'ui/index.html').read_text() + page = (ROOT / 'ui/index.html').read_text(encoding='utf-8') code = page[page.index('let comfortBusy ='):page.index('async function pollComfort()')] setup = r''' const assert = require('node:assert/strict');