From 8fef75851181ce794a916bc40a0b10a969ee646b Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx Date: Wed, 17 Nov 2010 01:01:00 -0800 Subject: [PATCH] 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. --- misc/build_helpers/test-with-fake-dists.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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')] -- 2.45.2