fix test error; can't remove empty directory problem on Windows.

This commit is contained in:
Takayuki Shimizukawa 2013-12-08 16:58:34 +09:00
parent ec623034cc
commit 6432f65347

View File

@ -49,7 +49,7 @@ def with_setup_command(root, *args, **kwds):
stderr=subprocess.PIPE)
func(pkgrootdir, proc, *args, **kwds)
finally:
tempdir.rmtree()
tempdir.rmtree(ignore_errors=True)
os.chdir(cwd)
return deco
return generator