mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
GH-89727: Fix os.fwalk()
recursion error on deep trees (#119638)
Implement `os.fwalk()` using a list as a stack to avoid emitting recursion errors on deeply nested trees.
This commit is contained in:
parent
2cc3502f98
commit
3c890b503c
3 changed files with 55 additions and 39 deletions
|
@ -1687,8 +1687,6 @@ class FwalkTests(WalkTests):
|
|||
|
||||
# fwalk() keeps file descriptors open
|
||||
test_walk_many_open_files = None
|
||||
# fwalk() still uses recursion
|
||||
test_walk_above_recursion_limit = None
|
||||
|
||||
|
||||
class BytesWalkTests(WalkTests):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue