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 f0fcc07

Browse filesBrowse files
committed
Force GC collection
1 parent ae19557 commit f0fcc07
Copy full SHA for f0fcc07

1 file changed

+2Lines changed: 2 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎git/test/test_util.py‎

Copy file name to clipboardExpand all lines: git/test/test_util.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
66

77
import tempfile
8+
import gc
89

910
from git.test.lib import (
1011
TestBase,
@@ -76,6 +77,7 @@ def test_lock_file(self):
7677

7778
# auto-release on destruction
7879
del(other_lock_file)
80+
gc.collect()
7981
lock_file._obtain_lock_or_raise()
8082
lock_file._release_lock()
8183

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.