Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 85896f7

Browse files
Issue #25860: Fixed test failure caused by inconsistency of os.walk() and
os.fwalk() parameter names.
2 parents 345e78e + a17ca19 commit 85896f7

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
@@ -791,6 +791,8 @@ class WalkTests(unittest.TestCase):
791791
# Wrapper to hide minor differences between os.walk and os.fwalk
792792
# to tests both functions with the same code base
793793
def walk(self, directory, **kwargs):
794+
if 'follow_symlinks' in kwargs:
795+
kwargs['followlinks'] = kwargs.pop('follow_symlinks')
794796
return os.walk(directory, **kwargs)
795797

796798
def setUp(self):

0 commit comments

Comments
 (0)