Disable the Windows Registry updates during `python install` tests (#14718)

This commit is contained in:
Zanie Blue 2025-07-18 07:49:25 -05:00 committed by GitHub
parent d1f4f8a358
commit 70875128be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -795,6 +795,9 @@ impl TestContext {
.env(EnvVars::UV_PYTHON_DOWNLOADS, "never")
.env(EnvVars::UV_TEST_PYTHON_PATH, self.python_path())
.env(EnvVars::UV_EXCLUDE_NEWER, EXCLUDE_NEWER)
// When installations are allowed, we don't want to write to global state, like the
// Windows registry
.env(EnvVars::UV_PYTHON_INSTALL_REGISTRY, "0")
// Since downloads, fetches and builds run in parallel, their message output order is
// non-deterministic, so can't capture them in test output.
.env(EnvVars::UV_TEST_NO_CLI_PROGRESS, "1")