]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
tests: test-with-fake-dists.py has the side-effect of injecting a fake package into...
authorZooko O'Whielacronx <zooko@zooko.com>
Wed, 17 Nov 2010 09:01:00 +0000 (01:01 -0800)
committerZooko O'Whielacronx <zooko@zooko.com>
Wed, 17 Nov 2010 09:01:00 +0000 (01:01 -0800)
misc/build_helpers/test-with-fake-dists.py

index 1c8e1b48f7dbf7073861778b0f829b9c359e9890..86742b432c2e951d86b30a46fe13c17a854dc7fc 100644 (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')]