Skip to content

Commit

Permalink
relax assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Dec 3, 2024
1 parent bdfed62 commit 457b4d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyo3-build-config/src/impl_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3087,7 +3087,7 @@ mod tests {
fn test_from_pyo3_config_file_env_rebuild() {
READ_ENV_VARS.with(|vars| vars.borrow_mut().clear());
let _ = InterpreterConfig::from_pyo3_config_file_env();
READ_ENV_VARS
.with(|vars| assert_eq!(vars.borrow().as_slice(), &["PYO3_CONFIG_FILE".to_string()]));
// it's possible that other env vars were also read, hence just checking for contains
READ_ENV_VARS.with(|vars| assert!(vars.borrow().contains(&"PYO3_CONFIG_FILE".to_string())));
}
}

0 comments on commit 457b4d3

Please sign in to comment.