From e4baa70feaf7520d21d693ee4f3c9f6b2395c549 Mon Sep 17 00:00:00 2001 From: Vigilans Date: Wed, 31 Jul 2024 07:50:44 +0800 Subject: [PATCH] Fix venv tests --- crates/uv/tests/venv.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/crates/uv/tests/venv.rs b/crates/uv/tests/venv.rs index 710fd5d30313..32de85f247cc 100644 --- a/crates/uv/tests/venv.rs +++ b/crates/uv/tests/venv.rs @@ -244,7 +244,7 @@ fn create_venv_reads_request_from_pyproject_toml() -> Result<()> { [project] name = "foo" version = "1.0.0" - requires-python = "==3.11.*" + requires-python = ">=3.11,<3.12" dependencies = [] "# })?; @@ -262,13 +262,13 @@ fn create_venv_reads_request_from_pyproject_toml() -> Result<()> { "# ); - // With `requires-python = ">=3.10"`, we should prefer first possible version 3.11 + // With `requires-python = ">=3.11"`, we should prefer first possible version 3.11 let pyproject_toml = context.temp_dir.child("pyproject.toml"); pyproject_toml.write_str(indoc! { r#" [project] name = "foo" version = "1.0.0" - requires-python = ">=3.10" + requires-python = ">=3.11" dependencies = [] "# })?; @@ -286,13 +286,13 @@ fn create_venv_reads_request_from_pyproject_toml() -> Result<()> { "# ); - // With `requires-python = ">=3.11"`, we should prefer first possible version 3.11 + // With `requires-python = ">3.11"`, we should prefer first possible version 3.11 let pyproject_toml = context.temp_dir.child("pyproject.toml"); pyproject_toml.write_str(indoc! { r#" [project] name = "foo" version = "1.0.0" - requires-python = ">=3.10" + requires-python = ">3.11" dependencies = [] "# })?; @@ -316,7 +316,7 @@ fn create_venv_reads_request_from_pyproject_toml() -> Result<()> { [project] name = "foo" version = "1.0.0" - requires-python = ">=3.10" + requires-python = ">=3.12" dependencies = [] "# })?; @@ -328,7 +328,7 @@ fn create_venv_reads_request_from_pyproject_toml() -> Result<()> { ----- stdout ----- ----- stderr ----- - Using Python 3.11.[X] interpreter at: [PYTHON-3.11] + Using Python 3.12.[X] interpreter at: [PYTHON-3.12] Creating virtualenv at: .venv Activate with: source .venv/bin/activate "#