From 541eca4ad824be672fb20de389450d10aba07a07 Mon Sep 17 00:00:00 2001 From: Magnus Markling Date: Fri, 25 Oct 2024 17:41:51 +0200 Subject: [PATCH] remove duplicate word in error message --- crates/uv/src/commands/project/mod.rs | 2 +- crates/uv/tests/it/sync.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/uv/src/commands/project/mod.rs b/crates/uv/src/commands/project/mod.rs index b85029742e90..b928f1c8ab08 100644 --- a/crates/uv/src/commands/project/mod.rs +++ b/crates/uv/src/commands/project/mod.rs @@ -439,7 +439,7 @@ impl ProjectInterpreter { if fs_err::read_dir(&venv).is_ok_and(|mut dir| dir.next().is_some()) { return Err(ProjectError::InvalidProjectEnvironmentDir( venv, - "because it is not a valid Python environment (no Python executable was found)" + "it is not a valid Python environment (no Python executable was found)" .to_string(), )); } diff --git a/crates/uv/tests/it/sync.rs b/crates/uv/tests/it/sync.rs index 21ba528d13e6..1841722d671b 100644 --- a/crates/uv/tests/it/sync.rs +++ b/crates/uv/tests/it/sync.rs @@ -2385,7 +2385,7 @@ fn sync_custom_environment_path() -> Result<()> { ----- stdout ----- ----- stderr ----- - error: Project virtual environment directory `[TEMP_DIR]/foo` cannot be used because because it is not a valid Python environment (no Python executable was found) + error: Project virtual environment directory `[TEMP_DIR]/foo` cannot be used because it is not a valid Python environment (no Python executable was found) "###); // But if it's just an incompatible virtual environment... @@ -3554,7 +3554,7 @@ fn sync_invalid_environment() -> Result<()> { ----- stdout ----- ----- stderr ----- - error: Project virtual environment directory `[VENV]/` cannot be used because because it is not a valid Python environment (no Python executable was found) + error: Project virtual environment directory `[VENV]/` cannot be used because it is not a valid Python environment (no Python executable was found) "###); // But if it's just an incompatible virtual environment... @@ -3620,7 +3620,7 @@ fn sync_invalid_environment() -> Result<()> { ----- stdout ----- ----- stderr ----- - error: Project virtual environment directory `[VENV]/` cannot be used because because it is not a valid Python environment (no Python executable was found) + error: Project virtual environment directory `[VENV]/` cannot be used because it is not a valid Python environment (no Python executable was found) "###); // But if it's not a virtual environment...