Commit 95203a2
fix(tests): Fix Windows test failures related to click 8.2 encoding issues (#1560)
Windows uses CP1252 encoding by default, which cannot handle Unicode
characters output by click.echo(). This causes test failures on Windows
when using click 8.2+.
This fix sets PYTHONIOENCODING=utf-8 in:
- tests/conftest.py: Set at module level for Windows platform
- tox.ini: Set via setenv for all test environments
Fixes encoding issues that cause UnicodeEncodeError on Windows when
tests output Unicode characters through click.echo().
Co-authored-by: BillionClaw <billionclaw+clawoss@users.noreply.github.com>1 parent b5bc102 commit 95203a2
2 files changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
16 | 24 | | |
17 | 25 | | |
18 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
26 | 33 | | |
27 | 34 | | |
28 | 35 | | |
| |||
0 commit comments