Sfoglia il codice sorgente

Fix Repo leak in test_reflog by closing in tearDown

Jelmer Vernooij 3 settimane fa
parent
commit
4dc28c07c9
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      tests/test_reflog.py

+ 1 - 0
tests/test_reflog.py

@@ -203,6 +203,7 @@ class RepoReflogTests(TestCase):
         TestCase.tearDown(self)
         TestCase.tearDown(self)
         import shutil
         import shutil
 
 
+        self.repo.close()
         shutil.rmtree(self.test_dir)
         shutil.rmtree(self.test_dir)
 
 
     def test_read_reflog_nonexistent(self) -> None:
     def test_read_reflog_nonexistent(self) -> None: