xiaodu55 fc27c94b67
test(extensions): make the extension-manager suite runnable on Windows hosts and under host uv mirrors (#6142)
* test(extensions): make the extension-manager suite runnable on Windows hosts and under host uv mirrors

- use the file's existing platform-aware .venv interpreter idiom in the two
  rollback tests (Scripts/python.exe on nt);
- compare the uv add source argument as a Path so the assertion is
  separator-neutral;
- pin UV_DEFAULT_INDEX in an autouse fixture so host mirror configuration
  cannot break the source-build tests; tests installing their own local
  index keep precedence.

Fixes #6141

* test(extensions): drop the extra-index env channels from the suite environment

UV_INDEX and UV_EXTRA_INDEX_URL entries take priority over the pinned
default index and could still break the source-build tests. UV_NO_CONFIG
is intentionally not used: it would also drop the fixture's own
[tool.uv] pyproject settings the command-shape assertions rely on.

---------

Co-authored-by: xiaodu55 <xiaodu55@users.noreply.github.com>
2026-10-01 20:14:59 +08:00
..