Re: [Python-Dev] devinabox: Properly clean up the 'build' directory from test runs.
1 Mar
2011
1 Mar
'11
1:55 a.m.
On Mon, 28 Feb 2011 23:03:51 +0100
brett.cannon
+ 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.
4804
Age (days ago)
4804
Last active (days ago)
0 comments
1 participants
participants (1)
-
Antoine Pitrou