scripttest
scripttest copied to clipboard
TestFileEnvironment.clear fails on Windows
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.