From: Zooko O'Whielacronx Date: Wed, 17 Nov 2010 09:01:00 +0000 (-0800) Subject: tests: test-with-fake-dists.py has the side-effect of injecting a fake package into... X-Git-Url: https://git.rkrishnan.org/simplejson/-?a=commitdiff_plain;h=8fef75851181ce794a916bc40a0b10a969ee646b;p=tahoe-lafs%2Ftahoe-lafs.git 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. --- diff --git a/misc/build_helpers/test-with-fake-dists.py b/misc/build_helpers/test-with-fake-dists.py index 1c8e1b48..86742b43 100644 --- a/misc/build_helpers/test-with-fake-dists.py +++ b/misc/build_helpers/test-with-fake-dists.py @@ -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')]