From 70875128be837b8ea96fb0cf6c9c2f9dea859195 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Fri, 18 Jul 2025 07:49:25 -0500 Subject: [PATCH] Disable the Windows Registry updates during `python install` tests (#14718) --- crates/uv/tests/it/common/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/uv/tests/it/common/mod.rs b/crates/uv/tests/it/common/mod.rs index ab4c38247..4c686cb77 100644 --- a/crates/uv/tests/it/common/mod.rs +++ b/crates/uv/tests/it/common/mod.rs @@ -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")