diff --git a/test/test_diff.py b/test/test_diff.py index 1d138a086..87f92f5d1 100644 --- a/test/test_diff.py +++ b/test/test_diff.py @@ -3,6 +3,7 @@ # This module is part of GitPython and is released under the # 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/ +import gc import os import os.path as osp import shutil @@ -27,8 +28,6 @@ def setUp(self): self.submodule_dir = tempfile.mkdtemp() def tearDown(self): - import gc - gc.collect() shutil.rmtree(self.repo_dir) shutil.rmtree(self.submodule_dir)