summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-12-22 22:37:34 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-12-22 22:37:34 (GMT)
commita17ca19d340766153db63959c307f5fd73880c19 (patch)
tree12cedce2e21fed5ea2c6588dff25792935a6226f /Lib/test
parent0bddc9eb15b88b22676aa516740f3ebd20fb8bb1 (diff)
downloadcpython-a17ca19d340766153db63959c307f5fd73880c19.zip
cpython-a17ca19d340766153db63959c307f5fd73880c19.tar.gz
cpython-a17ca19d340766153db63959c307f5fd73880c19.tar.bz2
Issue #25860: Fixed test failure caused by inconsistency of os.walk() and
os.fwalk() parameter names.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_os.py2
1 files changed, 2 insertions, 0 deletions
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):