# HG changeset patch # User Risto Kankkunen # Date 1248881908 -10800 # Node ID a42fb4f1716ae713c8f846edb0621de4499b283e # Parent e5a9c824ffbfbad6434faf8b3e0473b39242a4ce Reclaim repository object to avoid tearDown() failing to remove the open file 'testrepo/db/rep-cache.db' diff --git a/tests/test_svnwrap.py b/tests/test_svnwrap.py --- a/tests/test_svnwrap.py +++ b/tests/test_svnwrap.py @@ -34,6 +34,7 @@ class TestBasicRepoLayout(unittest.TestC self.repo = svnwrap.SubversionRepo(test_util.fileurl(self.repo_path)) def tearDown(self): + del self.repo shutil.rmtree(self.tmpdir, onerror=lambda func, path, e: force_rm(path))