← Back to team overview

dulwich-users team mailing list archive

[PATCH 6/6] test_pack.TestPack.test_copy: close packs

 

---
 dulwich/tests/test_pack.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dulwich/tests/test_pack.py b/dulwich/tests/test_pack.py
index f2467f8..bef9fd5 100644
--- a/dulwich/tests/test_pack.py
+++ b/dulwich/tests/test_pack.py
@@ -288,6 +288,10 @@ class TestPack(PackTests):
         new_checksum = newpack.index.get_stored_checksum()
         self.assertTrue(wrong_version or orig_checksum == new_checksum)
 
+        # close packs
+        origpack.close()
+        newpack.close()
+
     def test_commit_obj(self):
         p = self.get_pack(pack1_sha)
         commit = p[commit_sha]
-- 
1.7.3.2.msysgit.0




References