From cf27c077be9e81237c6de726a502dd34932e93ef Mon Sep 17 00:00:00 2001 From: konsti Date: Tue, 20 May 2025 21:36:45 +0200 Subject: [PATCH] Remove unnecessary current dir in tests (#13561) This is already done by `add_shared_options`. --- crates/uv/tests/it/common/mod.rs | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/crates/uv/tests/it/common/mod.rs b/crates/uv/tests/it/common/mod.rs index e21314456..4aa9f1ac7 100644 --- a/crates/uv/tests/it/common/mod.rs +++ b/crates/uv/tests/it/common/mod.rs @@ -892,8 +892,7 @@ impl TestContext { .arg("python") .arg("find") .env(EnvVars::UV_PREVIEW, "1") - .env(EnvVars::UV_PYTHON_INSTALL_DIR, "") - .current_dir(&self.temp_dir); + .env(EnvVars::UV_PYTHON_INSTALL_DIR, ""); self.add_shared_options(&mut command, false); command } @@ -904,8 +903,7 @@ impl TestContext { command .arg("python") .arg("list") - .env(EnvVars::UV_PYTHON_INSTALL_DIR, "") - .current_dir(&self.temp_dir); + .env(EnvVars::UV_PYTHON_INSTALL_DIR, ""); self.add_shared_options(&mut command, false); command } @@ -914,10 +912,7 @@ impl TestContext { pub fn python_install(&self) -> Command { let mut command = self.new_command(); self.add_shared_options(&mut command, true); - command - .arg("python") - .arg("install") - .current_dir(&self.temp_dir); + command.arg("python").arg("install"); command } @@ -925,10 +920,7 @@ impl TestContext { pub fn python_uninstall(&self) -> Command { let mut command = self.new_command(); self.add_shared_options(&mut command, true); - command - .arg("python") - .arg("uninstall") - .current_dir(&self.temp_dir); + command.arg("python").arg("uninstall"); command }