Skip to content

Commit

Permalink
Refactor test_shell
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoinePrv committed Aug 3, 2023
1 parent e35e32d commit 0774da6
Show file tree
Hide file tree
Showing 2 changed files with 235 additions and 267 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 0774da6

Please sign in to comment.