workaround for not removed tmp folders on Windows

This commit is contained in:
Dmitry Babokin
2014-01-31 20:11:02 +04:00
parent 1ba54e3b65
commit ac0963a0a5

View File

@@ -295,6 +295,8 @@ def run_tasks_from_queue(queue, queue_ret, queue_skip, total_tests_arg, max_test
if is_windows:
tmpdir = "tmp%d" % os.getpid()
while os.access(tmpdir, os.F_OK):
tmpdir = "%sx" % tmpdir
os.mkdir(tmpdir)
os.chdir(tmpdir)
else: