cpython: 757159fb4847 (original) (raw)

Mercurial > cpython

changeset 100466:757159fb4847 3.5

Issue #25911: Tring to silence deprecation warnings in bytes path walk tests. [#25911]

Serhiy Storchaka storchaka@gmail.com
date Tue, 08 Mar 2016 21:26:26 +0200
parents f48b32bc3d0a
children ecf4e51c222f 8ea548397c57
files Lib/test/test_os.py
diffstat 1 files changed, 11 insertions(+), 0 deletions(-)[+] [-] Lib/test/test_os.py 11

line wrap: on

line diff

--- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -1021,6 +1021,17 @@ class FwalkTests(WalkTests): class BytesWalkTests(WalkTests): """Tests for os.walk() with bytes."""

+

+ def walk(self, top, **kwargs): if 'follow_symlinks' in kwargs: kwargs['followlinks'] = kwargs.pop('follow_symlinks')