Skip to content

Commit

Permalink
fix test_conda_downgrade by using clean env (PYTHONPATH was interfering)
Browse files Browse the repository at this point in the history
  • Loading branch information
msarahan committed Apr 18, 2019
1 parent 5f3129d commit 6915e99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -2574,12 +2574,12 @@ def test_conda_downgrade(self):
assert package_is_installed(prefix, "lockfile")

# runs the conda in the env to install something new into the env
run_command(Commands.RUN, prefix, conda_exe, "install", "-yp", prefix, "itsdangerous") #rev 2
subprocess_call_with_clean_env([conda_exe, "install", "-yp", prefix, "itsdangerous"], path=prefix) #rev 2
PrefixData._cache_.clear()
assert package_is_installed(prefix, "itsdangerous")

# downgrade the version of conda in the env
run_command(Commands.RUN, prefix, conda_exe, "install", "-yp", prefix, "conda=4.5.11") # rev 3
subprocess_call_with_clean_env([conda_exe, "install", "-yp", prefix, "conda=4.5.11"], path=prefix) #rev 3
PrefixData._cache_.clear()
assert not package_is_installed(prefix, "conda=4.5.12")

Expand Down

0 comments on commit 6915e99

Please sign in to comment.