Commit c3896fa7 authored by Jim Fulton's avatar Jim Fulton

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

parent 96db91f4
......@@ -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