Skip to content

Commit dc8593f

Browse files
committed
Fix cross-platform test for get_display_name
1 parent a3182a6 commit dc8593f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • crates/pet-winpython/src

‎crates/pet-winpython/src/lib.rs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,8 @@ mod tests {
400400

401401
#[test]
402402
fn test_get_display_name() {
403-
let path = PathBuf::from("C:\\WPy64-31300");
403+
// Use a simple directory name that works on all platforms
404+
let path = PathBuf::from("WPy64-31300");
404405
assert_eq!(
405406
get_display_name(&path, Some("3.13.0")),
406407
Some("WinPython 3.13.0".to_string())

0 commit comments

Comments
 (0)