Skip to content

Commit

Permalink
Extract remaining local "import gc" to module level
Browse files Browse the repository at this point in the history
In gitpython-developers#1765, I missed one, somehow. This fixes that.
  • Loading branch information
EliahKagan committed Dec 12, 2023
1 parent 0fa0047 commit 96cae00
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/test_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 96cae00

Please sign in to comment.