Skip to content

Commit a9df6fc

Browse files
committed
test: normalize VirtualEnvWrapper executable assertion on Windows
1 parent 4feefe3 commit a9df6fc

File tree

1 file changed

+7
-1
lines changed
  • crates/pet-virtualenvwrapper/src

1 file changed

+7
-1
lines changed

crates/pet-virtualenvwrapper/src/lib.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,13 @@ mod tests {
203203
Some(PythonEnvironmentKind::VirtualEnvWrapper)
204204
);
205205
assert_eq!(virtualenvwrapper_env.name, Some("wrapped-env".to_string()));
206-
assert_eq!(virtualenvwrapper_env.executable, Some(executable));
206+
assert_eq!(
207+
virtualenvwrapper_env
208+
.executable
209+
.as_ref()
210+
.map(pet_fs::path::norm_case),
211+
Some(pet_fs::path::norm_case(executable))
212+
);
207213
assert_eq!(virtualenvwrapper_env.version, Some("3.12.1".to_string()));
208214
assert_eq!(virtualenvwrapper_env.prefix, Some(prefix.clone()));
209215
assert_eq!(

0 commit comments

Comments
 (0)