mirror of https://github.com/pypa/pip
(Fix Tests): Change method from shutil.remove to shutil.rmtree
- remove was not a member of shutil and tests were failing because of it. To fix it, shutil.rmtree is used. Signed-off-by: Akash Srivastava <akashsrivastava4927@gmail.com>
This commit is contained in:
parent
a0b75cc460
commit
c265ce1b48
|
@ -73,7 +73,7 @@ def should_update_common_wheels():
|
||||||
|
|
||||||
# Clear the stale cache.
|
# Clear the stale cache.
|
||||||
if need_to_repopulate:
|
if need_to_repopulate:
|
||||||
shutil.remove(LOCATIONS["common-wheels"], ignore_errors=True)
|
shutil.rmtree(LOCATIONS["common-wheels"], ignore_errors=True)
|
||||||
|
|
||||||
return need_to_repopulate
|
return need_to_repopulate
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue