(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:
Akash Srivastava 2019-10-14 12:30:43 +05:30
parent a0b75cc460
commit c265ce1b48
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ def should_update_common_wheels():
# Clear the stale cache.
if need_to_repopulate:
shutil.remove(LOCATIONS["common-wheels"], ignore_errors=True)
shutil.rmtree(LOCATIONS["common-wheels"], ignore_errors=True)
return need_to_repopulate