(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.
@@ -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
