From a17ca19d340766153db63959c307f5fd73880c19 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Wed, 23 Dec 2015 00:37:34 +0200 Subject: Issue #25860: Fixed test failure caused by inconsistency of os.walk() and os.fwalk() parameter names. --- Lib/test/test_os.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 6c95ec7..ade75a5 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -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): -- cgit v0.12