Skip to content

Commit a4a4e69

Browse files
committed
Handle windows path
1 parent 3c6e4be commit a4a4e69

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

micromamba/tests/test_shell.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,9 @@ def test_init(tmp_home, tmp_root_prefix, shell_type, prefix_selector, multiple_t
227227

228228
def test_shell_init_with_env_var(tmp_home, tmp_root_prefix):
229229
umamba_cmd = helpers.get_umamba()
230+
# Ensure correct path formatting for Windows
231+
if "\\" in umamba_cmd:
232+
umamba_cmd = umamba_cmd.replace("\\", "/")
230233
res = helpers.umamba_run("sh", "-c", f"export SHELL=/bin/bash; {umamba_cmd} shell init")
231234
assert res
232235
assert (tmp_root_prefix / "etc" / "profile.d").is_dir()

0 commit comments

Comments
 (0)