Merge pull request #728 from dbabokin/win_runtest
workaround for not removed tmp folders on Windows
This commit is contained in:
@@ -295,6 +295,8 @@ def run_tasks_from_queue(queue, queue_ret, queue_skip, total_tests_arg, max_test
|
|||||||
|
|
||||||
if is_windows:
|
if is_windows:
|
||||||
tmpdir = "tmp%d" % os.getpid()
|
tmpdir = "tmp%d" % os.getpid()
|
||||||
|
while os.access(tmpdir, os.F_OK):
|
||||||
|
tmpdir = "%sx" % tmpdir
|
||||||
os.mkdir(tmpdir)
|
os.mkdir(tmpdir)
|
||||||
os.chdir(tmpdir)
|
os.chdir(tmpdir)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user