Skip to content

Commit

Permalink
Refactor test_shell (mamba-org#2726)
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoinePrv authored and cvanelteren committed Aug 29, 2023
1 parent 0fc6e07 commit f969658
Show file tree
Hide file tree
Showing 2 changed files with 242 additions and 280 deletions.
3 changes: 2 additions & 1 deletion micromamba/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ def tmp_root_prefix(
# Pytest would clean it automatically but this can be large (0.5 Gb for repodata)
# We clean it explicitly
if not request.config.getoption("--no-eager-clean"):
helpers.rmtree(new_root_prefix)
if new_root_prefix.exists():
helpers.rmtree(new_root_prefix)
# os.environ restored by tmp_clean_env and tmp_environ


Expand Down
Loading

0 comments on commit f969658

Please sign in to comment.