diff --git a/crates/uv/tests/pip_compile.rs b/crates/uv/tests/pip_compile.rs index 80b811ff9..874285327 100644 --- a/crates/uv/tests/pip_compile.rs +++ b/crates/uv/tests/pip_compile.rs @@ -7811,30 +7811,30 @@ fn compile_index_url_fallback() -> Result<()> { /// If the package exists exist on the "extra" index at a compatible version, the resolver should /// prefer it, even if a newer versions exists on the "primary" index. /// -/// In this case, Jinja 3.1.2 is hosted on the "extra" index, but newer versions are available on +/// In this case, anyio 3.5.0 is hosted on the "extra" index, but newer versions are available on /// the "primary" index. #[test] fn compile_index_url_fallback_prefer_primary() -> Result<()> { let context = TestContext::new("3.12"); let requirements_in = context.temp_dir.child("requirements.in"); - requirements_in.write_str("jinja2")?; + requirements_in.write_str("anyio")?; - uv_snapshot!(context.compile_without_exclude_newer() + uv_snapshot!(context.compile() .arg("--index-strategy") .arg("unsafe-any-match") .arg("--index-url") .arg("https://pypi.org/simple") .arg("--extra-index-url") - .arg("https://download.pytorch.org/whl/cpu") + .arg("https://test.pypi.org/simple") .arg("requirements.in") .arg("--no-deps"), @r###" success: true exit_code: 0 ----- stdout ----- # This file was autogenerated by uv via the following command: - # uv pip compile --cache-dir [CACHE_DIR] --index-strategy unsafe-any-match requirements.in --no-deps - jinja2==3.1.3 + # uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z --index-strategy unsafe-any-match requirements.in --no-deps + anyio==3.5.0 ----- stderr ----- Resolved 1 package in [TIME]