]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #25860: Fixed test failure caused by inconsistency of os.walk() and
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 22 Dec 2015 22:37:34 +0000 (00:37 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Tue, 22 Dec 2015 22:37:34 +0000 (00:37 +0200)
os.fwalk() parameter names.

Lib/test/test_os.py

index 6c95ec7e1484427ce8a3b328afc3852686523c0b..ade75a51ed52d1ab8ba0d846079ebcedc888a7b4 100644 (file)
@@ -792,6 +792,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):