[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 2011年2月28日 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

AltStyle によって変換されたページ (->オリジナル) /