Преглед изворни кода

Fix Repo leak in test_reflog by closing in tearDown

Jelmer Vernooij пре 2 недеља
родитељ
комит
1834b5fde5
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      tests/test_reflog.py

+ 1 - 0
tests/test_reflog.py

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