mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Only delete the user cache if it's populated
This commit is contained in:
parent
a0e73f069c
commit
5bbf3fd3ff
|
@ -151,6 +151,7 @@ def virtualenv(tmpdir, monkeypatch, isolate):
|
|||
)
|
||||
|
||||
# Clean out our cache: creating the venv injects wheels into it.
|
||||
if os.path.exists(appdirs.user_cache_dir("pip")):
|
||||
shutil.rmtree(appdirs.user_cache_dir("pip"))
|
||||
|
||||
# Undo our monkeypatching of shutil
|
||||
|
|
Loading…
Reference in a new issue