Ben Hoyt added the comment:

Attaching a first cut at this -- basically the implementation I use for walk() 
in scandir.py on GitHub.

One thing that's really weird to me: are the os.walk() unit tests actually 
being run? In test_os.py, I notice everything's in WalkTest.setUp, which is 
kinda weird -- and it's not actually running. At least when I add a "1/0" 
inside setUp() to force an error and run "python -m test test_os" I don't get 
any errors...

----------
keywords: +patch
nosy: +benhoyt
Added file: http://bugs.python.org/file38385/os_walk_1.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23605>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to