Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 96cae00

Browse filesBrowse files
committed
Extract remaining local "import gc" to module level
In #1765, I missed one, somehow. This fixes that.
1 parent 0fa0047 commit 96cae00
Copy full SHA for 96cae00

File tree

1 file changed

+1
-2
lines changed
Filter options

1 file changed

+1
-2
lines changed

‎test/test_diff.py

Copy file name to clipboardExpand all lines: test/test_diff.py
+1-2Lines changed: 1 addition & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.