diff --git a/integration/bundle/init_default_python_test.go b/integration/bundle/init_default_python_test.go index da8ff0c2f..25f1f7748 100644 --- a/integration/bundle/init_default_python_test.go +++ b/integration/bundle/init_default_python_test.go @@ -60,10 +60,10 @@ func testDefaultPython(t *testing.T, pythonVersion string) { testcli.PrepareReplacementsUser(t, replacements, *user) } - tmpDir1 := pythontest.RequirePythonVENV(t, ctx, pythonVersion, true) + tmpDir1, pythonExe := pythontest.RequirePythonVENV(t, ctx, pythonVersion, true) extras, ok := extraInstalls[pythonVersion] if ok { - args := append([]string{"pip", "install"}, extras...) + args := append([]string{"pip", "install", "--python", pythonExe}, extras...) testutil.RunCommand(t, "uv", args...) }