Skip to content

Commit

Permalink
Fix a test case
Browse files Browse the repository at this point in the history
  • Loading branch information
messense authored Oct 19, 2023
1 parent ce73f0e commit b18903b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/python_interpreter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -989,19 +989,19 @@ mod tests {
let target =
Target::from_target_triple(Some("x86_64-unknown-linux-gnu".to_string())).unwrap();
let pythons = PythonInterpreter::find_by_target(&target, None);
assert_eq!(pythons.len(), 10);
assert_eq!(pythons.len(), 11);

let pythons = PythonInterpreter::find_by_target(
&target,
Some(&VersionSpecifiers::from_str(">=3.7").unwrap()),
);
assert_eq!(pythons.len(), 10);
assert_eq!(pythons.len(), 11);

let pythons = PythonInterpreter::find_by_target(
&target,
Some(&VersionSpecifiers::from_str(">=3.10").unwrap()),
);
assert_eq!(pythons.len(), 4);
assert_eq!(pythons.len(), 5);
}

#[test]
Expand Down

0 comments on commit b18903b

Please sign in to comment.