scripttest icon indicating copy to clipboard operation
scripttest copied to clipboard

TestFileEnvironment.clear fails on Windows

Open guruofgentoo opened this issue 11 years ago • 0 comments

With scripttest 1.3, Python 2.7.8 win32.

When the test directory already exists, TestFileEnvironment.clear fails, with "WindowsError: [Error 5] Access is denied:" on the mkdir. It appears that Windows holds a lock on the path for a short time after rmtree returns. Adding time.sleep(0.001) after rmtree fixed the issue.

guruofgentoo avatar Sep 10 '14 19:09 guruofgentoo