Skip to content

Commit

Permalink
Made test_init_dev explicitly init cmd.exe when on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
cgranade committed Sep 26, 2018
1 parent b2f35a2 commit 0f7ce04
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -2059,8 +2059,10 @@ def test_init_dev_and_NoBaseEnvironmentError(self):
conda_version = result.stdout.strip()[6:]
assert conda_version == "4.5.0"

result = subprocess_call("%s -m conda init --dev" % join(prefix, python_exe),
path=dirname(CONDA_PACKAGE_ROOT))
result = subprocess_call(
("%s -m conda init --dev" if on_win else "%s -m conda init cmd.exe --dev"
% join(prefix, python_exe),
path=dirname(CONDA_PACKAGE_ROOT))

result = subprocess_call("%s --version" % join(prefix, conda_exe))
assert result.rc == 0
Expand Down

0 comments on commit 0f7ce04

Please sign in to comment.