Commit 559c99a
committed
fix(ci): pop PYTHONHOME in nox before running pytest to fix Windows CI
On Windows, uv run sets PYTHONHOME to the managed Python 3.14 install
directory when starting nox. This leaks into nox sub-sessions so pytest
processes for Python 3.11–3.13 load Python 3.14's stdlib and crash.
Fix by clearing PYTHONHOME in os.environ at the start of _run_test_suite
in noxfile.py, before any pytest subprocess is spawned. Also removes the
now-unnecessary `unset PYTHONHOME` from the composite action (it was a
no-op: uv run re-injects PYTHONHOME regardless).1 parent a2fd65f commit 559c99a
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
893 | 893 | | |
894 | 894 | | |
895 | 895 | | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
896 | 902 | | |
897 | 903 | | |
898 | 904 | | |
| |||
0 commit comments