Skip to content

Commit

Permalink
Fix test_remove_virtual_package on Windows (#2924)
Browse files Browse the repository at this point in the history
  • Loading branch information
ogrisel authored Oct 20, 2023
1 parent d0b3ea0 commit 411cd4a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mamba/tests/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,12 @@ def test_info(use_json):
)
def test_remove_virtual_package(virtual_package_name):
# non-regression test for https://github.com/mamba-org/mamba/issues/2129
with Environment("bash") as env:
if platform.system() == "Windows":
shell_type = "cmd.exe"
else:
shell_type = "bash"

with Environment(shell_type) as env:
# The platform specific virtual package should be "installed" by default.
out = env.mamba("info -q")
assert virtual_package_name in "\n".join(out)
Expand Down

0 comments on commit 411cd4a

Please sign in to comment.