mirror of https://github.com/astral-sh/uv
Remove unnecessary current dir in tests (#13561)
This is already done by `add_shared_options`.
This commit is contained in:
parent
a47b9fd746
commit
cf27c077be
|
|
@ -892,8 +892,7 @@ impl TestContext {
|
||||||
.arg("python")
|
.arg("python")
|
||||||
.arg("find")
|
.arg("find")
|
||||||
.env(EnvVars::UV_PREVIEW, "1")
|
.env(EnvVars::UV_PREVIEW, "1")
|
||||||
.env(EnvVars::UV_PYTHON_INSTALL_DIR, "")
|
.env(EnvVars::UV_PYTHON_INSTALL_DIR, "");
|
||||||
.current_dir(&self.temp_dir);
|
|
||||||
self.add_shared_options(&mut command, false);
|
self.add_shared_options(&mut command, false);
|
||||||
command
|
command
|
||||||
}
|
}
|
||||||
|
|
@ -904,8 +903,7 @@ impl TestContext {
|
||||||
command
|
command
|
||||||
.arg("python")
|
.arg("python")
|
||||||
.arg("list")
|
.arg("list")
|
||||||
.env(EnvVars::UV_PYTHON_INSTALL_DIR, "")
|
.env(EnvVars::UV_PYTHON_INSTALL_DIR, "");
|
||||||
.current_dir(&self.temp_dir);
|
|
||||||
self.add_shared_options(&mut command, false);
|
self.add_shared_options(&mut command, false);
|
||||||
command
|
command
|
||||||
}
|
}
|
||||||
|
|
@ -914,10 +912,7 @@ impl TestContext {
|
||||||
pub fn python_install(&self) -> Command {
|
pub fn python_install(&self) -> Command {
|
||||||
let mut command = self.new_command();
|
let mut command = self.new_command();
|
||||||
self.add_shared_options(&mut command, true);
|
self.add_shared_options(&mut command, true);
|
||||||
command
|
command.arg("python").arg("install");
|
||||||
.arg("python")
|
|
||||||
.arg("install")
|
|
||||||
.current_dir(&self.temp_dir);
|
|
||||||
command
|
command
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -925,10 +920,7 @@ impl TestContext {
|
||||||
pub fn python_uninstall(&self) -> Command {
|
pub fn python_uninstall(&self) -> Command {
|
||||||
let mut command = self.new_command();
|
let mut command = self.new_command();
|
||||||
self.add_shared_options(&mut command, true);
|
self.add_shared_options(&mut command, true);
|
||||||
command
|
command.arg("python").arg("uninstall");
|
||||||
.arg("python")
|
|
||||||
.arg("uninstall")
|
|
||||||
.current_dir(&self.temp_dir);
|
|
||||||
command
|
command
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue