Skip to content

Commit e9fd459

Browse files
committed
fix test on Windows
1 parent ee7f9a8 commit e9fd459

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

crates/rattler/src/install/clobber_registry.rs

+13-6
Original file line numberDiff line numberDiff line change
@@ -1071,11 +1071,18 @@ mod tests {
10711071
.await;
10721072

10731073
// check that the files are there
1074-
assert_check_files(
1075-
&target_prefix
1076-
.path()
1077-
.join("lib/python3.11/site-packages/clobber"),
1078-
&["clobber.py", "clobber.py__clobber-from-clobber-pynoarch-2"],
1079-
);
1074+
if cfg!(unix) {
1075+
assert_check_files(
1076+
&target_prefix
1077+
.path()
1078+
.join("lib/python3.11/site-packages/clobber"),
1079+
&["clobber.py", "clobber.py__clobber-from-clobber-pynoarch-2"],
1080+
);
1081+
} else {
1082+
assert_check_files(
1083+
&target_prefix.path().join("Lib/site-packages/clobber"),
1084+
&["clobber.py", "clobber.py__clobber-from-clobber-pynoarch-2"],
1085+
);
1086+
}
10801087
}
10811088
}

0 commit comments

Comments
 (0)