Merge pull request #728 from dbabokin/win_runtest

workaround for not removed tmp folders on Windows
This commit is contained in:
Dmitry Babokin
2014-01-31 08:11:47 -08:00

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: