[Python-Dev] devinabox: Properly clean up the 'build' directory from test runs.
Antoine Pitrou
solipsis at pitrou.net
Tue Mar 1 02:55:18 CET 2011
On Mon, 28 Feb 2011 23:03:51 +0100
brett.cannon <python-checkins at python.org> wrote:
> + try:
> + subprocess.call([cmd, '-W', 'default', '-bb', '-E', '-m', 'test', '-r',
> + '-w', '-u', 'all', '-j',
> + str(multiprocessing.cpu_count())])
> + finally:
> + os.rmdir('build')
os.rmdir() won't work on a non-empty directory; you probably want
shutil.rmtree() instead.
Regards
Antoine.
More information about the Python-Dev
mailing list