Skip to content

Commit 41b83b0

Browse files
Issue #25860: Fixed test failure caused by inconsistency of os.walk() and
os.fwalk() parameter names.
1 parent a6c3862 commit 41b83b0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/test_os.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,8 @@ class WalkTests(unittest.TestCase):
792792
# Wrapper to hide minor differences between os.walk and os.fwalk
793793
# to tests both functions with the same code base
794794
def walk(self, directory, **kwargs):
795+
if 'follow_symlinks' in kwargs:
796+
kwargs['followlinks'] = kwargs.pop('follow_symlinks')
795797
return os.walk(directory, **kwargs)
796798

797799
def setUp(self):

0 commit comments

Comments
 (0)