Skip to content

Commit 37e234a

Browse files
authored
Merge pull request #1768 from EliahKagan/gc-import
Extract remaining local "import gc" to module level
2 parents 0fa0047 + 96cae00 commit 37e234a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/test_diff.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# This module is part of GitPython and is released under the
44
# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/
55

6+
import gc
67
import os
78
import os.path as osp
89
import shutil
@@ -27,8 +28,6 @@ def setUp(self):
2728
self.submodule_dir = tempfile.mkdtemp()
2829

2930
def tearDown(self):
30-
import gc
31-
3231
gc.collect()
3332
shutil.rmtree(self.repo_dir)
3433
shutil.rmtree(self.submodule_dir)

0 commit comments

Comments
 (0)