Skip to content

Commit f0fcc07

Browse files
committed
Force GC collection
1 parent ae19557 commit f0fcc07

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

git/test/test_util.py

Lines 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy