mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Issue #25860: Fixed test failure caused by inconsistency of os.walk() and
os.fwalk() parameter names.
This commit is contained in:
commit
85896f72d5
1 changed files with 2 additions and 0 deletions
|
@ -791,6 +791,8 @@ class WalkTests(unittest.TestCase):
|
|||
# Wrapper to hide minor differences between os.walk and os.fwalk
|
||||
# to tests both functions with the same code base
|
||||
def walk(self, directory, **kwargs):
|
||||
if 'follow_symlinks' in kwargs:
|
||||
kwargs['followlinks'] = kwargs.pop('follow_symlinks')
|
||||
return os.walk(directory, **kwargs)
|
||||
|
||||
def setUp(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue