diff --git a/news/7191.bugfix b/news/7191.bugfix new file mode 100644 index 00000000000..06b3b01eff4 --- /dev/null +++ b/news/7191.bugfix @@ -0,0 +1 @@ +Change method from shutil.remove to shutil.rmtree in noxfile.py. diff --git a/noxfile.py b/noxfile.py index d990fa571b5..0799fc5cc53 100644 --- a/noxfile.py +++ b/noxfile.py @@ -76,7 +76,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