Mercurial > hgsubversion
comparison tests/test_svnwrap.py @ 482:a42fb4f1716a
Reclaim repository object to avoid tearDown() failing to remove the open file 'testrepo/db/rep-cache.db'
author | Risto Kankkunen <risto.kankkunen@iki.fi> |
---|---|
date | Wed, 29 Jul 2009 18:38:28 +0300 |
parents | e5a9c824ffbf |
children | c2d606a1dc6f |
comparison
equal
deleted
inserted
replaced
481:e5a9c824ffbf | 482:a42fb4f1716a |
---|---|
32 stderr=subprocess.STDOUT) | 32 stderr=subprocess.STDOUT) |
33 assert proc == 0 | 33 assert proc == 0 |
34 self.repo = svnwrap.SubversionRepo(test_util.fileurl(self.repo_path)) | 34 self.repo = svnwrap.SubversionRepo(test_util.fileurl(self.repo_path)) |
35 | 35 |
36 def tearDown(self): | 36 def tearDown(self): |
37 del self.repo | |
37 shutil.rmtree(self.tmpdir, onerror=lambda func, path, e: force_rm(path)) | 38 shutil.rmtree(self.tmpdir, onerror=lambda func, path, e: force_rm(path)) |
38 | 39 |
39 | 40 |
40 def test_num_revs(self): | 41 def test_num_revs(self): |
41 revs = list(self.repo.revisions()) | 42 revs = list(self.repo.revisions()) |