Message223584
Sometimes, test_pathlib fails because shutil.rmtree() cannot remove a test directory. Example:
http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/4833/steps/test/logs/stdio
======================================================================
ERROR: test_touch_common (test.test_pathlib.WindowsPathTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\shutil.py", line 477, in rmtree
return _rmtree_unsafe(path, onerror)
File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\shutil.py", line 367, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\shutil.py", line 376, in _rmtree_unsafe
onerror(os.rmdir, path, sys.exc_info())
File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\shutil.py", line 374, in _rmtree_unsafe
os.rmdir(path)
OSError: [WinError 145] The directory is not empty: 'C:\\buildbot.python.org\\3.x.kloth-win64\\build\\build\\test_python_3444\\@test_3444_tmp\\dirB'
The error comes from this cleanup function:
self.addCleanup(shutil.rmtree, BASE)
I don't understand how rmtree() can fail with "The directory is not empty".
Note: this buildbot runs 4 tests in parallel using the "-j4" command line option of regrtest. |
|
Date |
User |
Action |
Args |
2014-07-21 16:05:04 | vstinner | set | recipients:
+ vstinner |
2014-07-21 16:05:04 | vstinner | set | messageid: <1405958704.27.0.741808263621.issue22022@psf.upfronthosting.co.za> |
2014-07-21 16:05:04 | vstinner | link | issue22022 messages |
2014-07-21 16:05:04 | vstinner | create | |
|