summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_shutil.py
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2024-06-01 18:49:12 (GMT)
committerGitHub <noreply@github.com>2024-06-01 18:49:12 (GMT)
commit53b1981fb0cda6c656069e992f172fc6aad7c99c (patch)
treeeb035cc156dabbbcd5cd879e3cb4c808716e4288 /Lib/test/test_shutil.py
parent63111bfcf021db29ce6ef9ffa4117ffb7a2cb868 (diff)
downloadcpython-53b1981fb0cda6c656069e992f172fc6aad7c99c.zip
cpython-53b1981fb0cda6c656069e992f172fc6aad7c99c.tar.gz
cpython-53b1981fb0cda6c656069e992f172fc6aad7c99c.tar.bz2
GH-89727: Fix `shutil.rmtree()` recursion error on deep trees (#119808)
Implement `shutil._rmtree_safe_fd()` using a list as a stack to avoid emitting recursion errors on deeply nested trees. `shutil._rmtree_unsafe()` was fixed in a150679f90.
Diffstat (limited to 'Lib/test/test_shutil.py')
-rw-r--r--Lib/test/test_shutil.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py
index 01f1390..bccb81e 100644
--- a/Lib/test/test_shutil.py
+++ b/Lib/test/test_shutil.py
@@ -741,7 +741,6 @@ class TestRmTree(BaseTest, unittest.TestCase):
shutil.rmtree(TESTFN)
raise
- @unittest.skipIf(shutil._use_fd_functions, "fd-based functions remain unfixed (GH-89727)")
def test_rmtree_above_recursion_limit(self):
recursion_limit = 40
# directory_depth > recursion_limit