Skip to content

Commit 4feefe3

Browse files
committed
test: normalize Pixi executable assertion on Windows
1 parent 12870f7 commit 4feefe3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

crates/pet-pixi/src/lib.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,15 @@ mod tests {
165165
.unwrap(),
166166
Some(fs::canonicalize(prefix.clone()).unwrap())
167167
);
168-
assert_eq!(pixi_env.executable, Some(executable));
168+
assert_eq!(
169+
pixi_env
170+
.executable
171+
.as_deref()
172+
.map(fs::canonicalize)
173+
.transpose()
174+
.unwrap(),
175+
Some(fs::canonicalize(executable).unwrap())
176+
);
169177

170178
fs::remove_dir_all(prefix.parent().unwrap()).unwrap();
171179
}

0 commit comments

Comments
 (0)