diff --git a/crates/uv/tests/venv.rs b/crates/uv/tests/venv.rs index 710fd5d30313d..32de85f247cc6 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 "#