xiaodu55 b30be67e00
fix(tests): write file_signature fixtures as bytes so CRLF never leaks in (#6042)
On Windows, Path.write_text and the text-mode append translate the
fixtures' newlines to CRLF on disk, so read_config_with_signature
correctly returns b'...info\r\n' while the tests assert the byte-exact
b'...info\n' - three tests fail on Windows (CI's Linux never sees the
translation). The product behavior is correct; the fixtures must write
the exact bytes they assert.

write_bytes / binary append for the three byte-sensitive tests: the
file now passes 10/10 on Windows.
2026-09-29 21:01:18 +08:00
..