summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2024-06-01 19:39:35 (GMT)
committerGitHub <noreply@github.com>2024-06-01 19:39:35 (GMT)
commitfeb7870b46feb4b758203a27deab7d674f19923b (patch)
tree5fafe204e26eb28048b222b1da4e57085055bf55 /Lib/test
parent60393f5f14c7741930de73c46475c9b5c1809dc3 (diff)
downloadcpython-feb7870b46feb4b758203a27deab7d674f19923b.zip
cpython-feb7870b46feb4b758203a27deab7d674f19923b.tar.gz
cpython-feb7870b46feb4b758203a27deab7d674f19923b.tar.bz2
[3.12] GH-89727: Fix `shutil.rmtree()` recursion error on deep trees (GH-119808) (#119919)
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. (cherry picked from commit 53b1981fb0cda6c656069e992f172fc6aad7c99c)
Diffstat (limited to 'Lib/test')
-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 926485d..7bc5d12 100644
--- a/Lib/test/test_shutil.py
+++ b/Lib/test/test_shutil.py
@@ -686,7 +686,6 @@ class TestRmTree(BaseTest, unittest.TestCase):
shutil.rmtree(TESTFN)
self.assertFalse(os.path.exists(TESTFN))
- @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