From b2dd9053a64ac74c6b0a9f069ccfbb800a9ed452 Mon Sep 17 00:00:00 2001 From: Xubin Ren <52506698+Re-bin@users.noreply.github.com> Date: Tue, 27 Oct 2026 23:05:32 +0800 Subject: [PATCH] test: seed disposable environments on Homebrew Python --- conftest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conftest.py b/conftest.py index c75faca88..814f16077 100644 --- a/conftest.py +++ b/conftest.py @@ -148,7 +148,6 @@ def create_integration_env(tmp_path_factory: pytest.TempPathFactory) -> Callable "--python", sys.executable, "--creator", "venv", "--seeder", "app-data", - "--copies", "--no-download", "--no-periodic-update", "--pip", versions["pip"], @@ -159,6 +158,8 @@ def create_integration_env(tmp_path_factory: pytest.TempPathFactory) -> Callable def create(environment: Path) -> Path: # Keep stdlib creation semantics; use virtualenv only for copied seed # packages and prefix-specific launchers, not its runtime import hooks. + # Do not request creator --copies: Homebrew disallows copying its Python, + # and this creator is never run. The app-data seeder copies by default. venv.EnvBuilder(with_pip=False).create(environment) with session_via_cli([str(environment), *options], setup_logging=False, env=env) as session: session.seeder.run(session.creator)