diff --git a/tests/test_desktop_update_windows_python_handoff.py b/tests/test_desktop_update_windows_python_handoff.py index 08ae08dde3..5a2739641f 100644 --- a/tests/test_desktop_update_windows_python_handoff.py +++ b/tests/test_desktop_update_windows_python_handoff.py @@ -37,7 +37,10 @@ WINDOWS_PS1 = REPO_ROOT / "scripts" / "desktop-update" / "windows.ps1" def _read() -> str: - return WINDOWS_PS1.read_text(encoding="utf-8") + # windows.ps1 is eol=crlf in .gitattributes, so checkouts materialize + # CRLF on disk (CI included). Normalize so the SelfTest-block strip's + # `\n}\n` anchors match regardless of the working-copy line endings. + return WINDOWS_PS1.read_text(encoding="utf-8").replace("\r\n", "\n") def _handoff_source() -> str: