tests: test-with-fake-dists.py has the side-effect of injecting a fake package into ./support, so after that test rm -rf ./support, and likewise with ./pycryptopp*.egg.

This commit is contained in:
Zooko O'Whielacronx 2010-11-17 01:01:00 -08:00
parent 50f8c37a2b
commit 8fef758511

View File

@ -24,7 +24,7 @@
# 0.5.24 or 0.5.25. At the time of this writing it requires >= 0.5.20
# on x86 and >= 0.5.14 on other architectures.)
import StringIO, glob, os, platform, subprocess, sys, tarfile, zipfile
import StringIO, glob, os, platform, shutil, subprocess, sys, tarfile, zipfile
import pkg_resources
fake_distdir = 'tahoe-deps'
@ -66,4 +66,5 @@ try:
finally:
os.remove(bdist_egg_name)
os.remove(sdist_name)
pass
shutil.rmtree('support')
[shutil.rmtree(p) for p in glob.glob('pycryptopp*.egg')]