Skip to content

Commit

Permalink
Filter for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Jan 17, 2025
1 parent 1f3aa76 commit 9ccc175
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions crates/uv/tests/it/pip_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ fn missing_requirements_txt() {

#[test]
fn missing_venv() -> Result<()> {
let context = TestContext::new("3.12");
let context = TestContext::new("3.12")
.with_filtered_virtualenv_bin()
.with_filtered_python_names();

let requirements = context.temp_dir.child("requirements.txt");
requirements.write_str("anyio")?;
fs::remove_dir_all(&context.venv)?;
Expand All @@ -62,8 +65,8 @@ fn missing_venv() -> Result<()> {
----- stdout -----
----- stderr -----
error: Failed to inspect Python interpreter from active virtual environment at `.venv/bin/python3`
Caused by: Python interpreter not found at `[VENV]/bin/python3`
error: Failed to inspect Python interpreter from active virtual environment at `.venv/[BIN]/python`
Caused by: Python interpreter not found at `[VENV]/[BIN]/python`
"###);

assert!(predicates::path::missing().eval(&context.venv));
Expand Down

0 comments on commit 9ccc175

Please sign in to comment.