Commit a17ca19d authored by Serhiy Storchaka's avatar Serhiy Storchaka

Issue #25860: Fixed test failure caused by inconsistency of os.walk() and

os.fwalk() parameter names.
parent 0bddc9eb
...@@ -792,6 +792,8 @@ class WalkTests(unittest.TestCase): ...@@ -792,6 +792,8 @@ class WalkTests(unittest.TestCase):
# Wrapper to hide minor differences between os.walk and os.fwalk # Wrapper to hide minor differences between os.walk and os.fwalk
# to tests both functions with the same code base # to tests both functions with the same code base
def walk(self, directory, **kwargs): def walk(self, directory, **kwargs):
if 'follow_symlinks' in kwargs:
kwargs['followlinks'] = kwargs.pop('follow_symlinks')
return os.walk(directory, **kwargs) return os.walk(directory, **kwargs)
def setUp(self): def setUp(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment