Commit d15c2350 authored by jim's avatar jim

Fixed a cleanup bug that caused temporary directories to get left behind.


git-svn-id: http://svn.zope.org/repos/main/zc.buildout/trunk@73344 62d5b8a3-27da-0310-9561-8e5933582275
parent 4e02dee9
......@@ -157,8 +157,8 @@ def buildoutSetUp(test):
del os.environ['HOME'] # pop doesn't truly remove it :(
register_teardown(lambda: os.environ.__setitem__('HOME', old_home))
base = tempfile.mkdtemp()
register_teardown(lambda: shutil.rmtree(base))
base = tempfile.mkdtemp('buildoutSetUp')
register_teardown(lambda base=base: shutil.rmtree(base))
base = os.path.join(base, '_TEST_')
os.mkdir(base)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment