dulwich-users team mailing list archive
-
dulwich-users team
-
Mailing list archive
-
Message #00367
[PATCH 5/6] test_object_store.PackBasedObjectStoreTests: close packs
---
dulwich/tests/test_object_store.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dulwich/tests/test_object_store.py b/dulwich/tests/test_object_store.py
index fa4da65..c172c57 100644
--- a/dulwich/tests/test_object_store.py
+++ b/dulwich/tests/test_object_store.py
@@ -181,6 +181,10 @@ class MemoryObjectStoreTests(ObjectStoreTests, TestCase):
class PackBasedObjectStoreTests(ObjectStoreTests):
+ def tearDown(self):
+ for pack in self.store.packs:
+ pack.close()
+
def test_empty_packs(self):
self.assertEquals([], self.store.packs)
@@ -204,6 +208,7 @@ class DiskObjectStoreTests(PackBasedObjectStoreTests, TestCase):
def tearDown(self):
TestCase.tearDown(self)
+ PackBasedObjectStoreTests.tearDown(self)
shutil.rmtree(self.store_dir)
def test_pack_dir(self):
--
1.7.3.2.msysgit.0
Follow ups
References