Remove unnecessary current dir in tests (#13561)

This is already done by `add_shared_options`.
This commit is contained in:
konsti 2025-05-20 21:36:45 +02:00 committed by GitHub
parent a47b9fd746
commit cf27c077be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 12 deletions

View File

@ -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
}