Commit f4bec64
committed
fix(test): read source as UTF-8 in the bare-Console AST sweep
The guard called path.read_text() with no encoding, so it used the locale
codec. On Windows that is cp1252, which cannot decode the ⏱️ in timing.py:119,
and the test died with UnicodeDecodeError before it could assert anything --
failing every windows-latest job in the matrix while passing on Linux and
macOS.
Reproduced locally by forcing the codec: read_text(encoding="cp1252") on
timing.py raises at byte 3610; utf-8 reads it fine.1 parent a0939dc commit f4bec64
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
74 | 78 | | |
75 | 79 | | |
76 | 80 | | |
| |||
0 commit comments