From c265ce1b4850191c142886ca37f59ecbf16db33c Mon Sep 17 00:00:00 2001 From: Akash Srivastava Date: Mon, 14 Oct 2019 12:30:43 +0530 Subject: [PATCH 1/2] (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 --- noxfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noxfile.py b/noxfile.py index 3ddd0c8aa..949dacb77 100644 --- a/noxfile.py +++ b/noxfile.py @@ -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 From a6e098a526cb2b18b9acd320fc954a79622b018e Mon Sep 17 00:00:00 2001 From: Akash Srivastava Date: Mon, 14 Oct 2019 13:07:22 +0530 Subject: [PATCH 2/2] Add newsfile for the PR Signed-off-by: Akash Srivastava --- news/7191.bugfix | 1 + 1 file changed, 1 insertion(+) create mode 100644 news/7191.bugfix diff --git a/news/7191.bugfix b/news/7191.bugfix new file mode 100644 index 000000000..06b3b01ef --- /dev/null +++ b/news/7191.bugfix @@ -0,0 +1 @@ +Change method from shutil.remove to shutil.rmtree in noxfile.py.