瀏覽代碼

Fix Repo leak in test_reflog by closing in tearDown

Jelmer Vernooij 3 周之前
父節點
當前提交
4dc28c07c9
共有 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: