[issue25995] os.walk() consumes a lot of file descriptors
Martin Panter
report at bugs.python.org
Wed Feb 24 05:40:27 EST 2016
Martin Panter added the comment:
The change seems to be causing some Windows buildbot failures <http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.5/builds/666/steps/test/logs/stdio>:
======================================================================
ERROR: test_walk_bad_dir (test.test_os.BytesWalkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot.python.org\3.5.kloth-win64\build\lib\test\test_os.py", line 931, in test_walk_bad_dir
root, dirs, files = next(walk_it)
File "C:\buildbot.python.org\3.5.kloth-win64\build\lib\test\test_os.py", line 1027, in walk
for broot, bdirs, bfiles in os.walk(os.fsencode(top), **kwargs):
File "C:\buildbot.python.org\3.5.kloth-win64\build\lib\os.py", line 372, in walk
entries = list(scandir(top))
TypeError: os.scandir() doesn't support bytes path on Windows, use Unicode instead
======================================================================
ERROR: test_walk_bottom_up (test.test_os.BytesWalkTests)
ERROR: test_walk_prune (test.test_os.BytesWalkTests)
Was this line
entries = list(scandir(top))
meant to be
entries = list(scandir_it)
----------
nosy: +martin.panter
status: closed -> open
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25995>
_______________________________________
More information about the Python-bugs-list
mailing list