Skip to content

Commit

Permalink
Merge pull request #1768 from EliahKagan/gc-import
Browse files Browse the repository at this point in the history
Extract remaining local "import gc" to module level
  • Loading branch information
Byron authored Dec 12, 2023
2 parents 0fa0047 + 96cae00 commit 37e234a
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 37e234a

Please sign in to comment.