Cleanup temp. dir. in libbe.vcs tests.
authorW. Trevor King <wking@drexel.edu>
Tue, 17 Nov 2009 14:04:37 +0000 (09:04 -0500)
committerW. Trevor King <wking@drexel.edu>
Tue, 17 Nov 2009 14:04:37 +0000 (09:04 -0500)
libbe/vcs.py

index d04db2831f2620fa1f760aa79a612afe3dbe6472..59dcaf80937877831c4dc360bcce6ae96f23f1cd 100644 (file)
@@ -384,7 +384,7 @@ class VCS(object):
         revision==None specifies the current revision.
         Return the path to the arbitrary directory at the base of the new repo.
         """
-        # Dirname in Baseir to protect against simlink attacks.
+        # Dirname in Basedir to protect against simlink attacks.
         if self._duplicateBasedir == None:
             self._duplicateBasedir = tempfile.mkdtemp(prefix='BEvcs')
             self._duplicateDirname = \
@@ -684,6 +684,7 @@ class VCSTestCase(unittest.TestCase):
 
     def tearDown(self):
         self.vcs.cleanup()
+        self.dir.cleanup()
         super(VCSTestCase, self).tearDown()
 
     def full_path(self, rel_path):