From f0fcc072b37d6e773e18ea561ebce8ccba2ba19c Mon Sep 17 00:00:00 2001 From: Daniele Esposti Date: Mon, 19 Sep 2016 23:32:39 +0100 Subject: Force GC collection --- git/test/test_util.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'git/test/test_util.py') diff --git a/git/test/test_util.py b/git/test/test_util.py index c6ca6920..3a67c04b 100644 --- a/git/test/test_util.py +++ b/git/test/test_util.py @@ -5,6 +5,7 @@ # the BSD License: http://www.opensource.org/licenses/bsd-license.php import tempfile +import gc from git.test.lib import ( TestBase, @@ -76,6 +77,7 @@ class TestUtils(TestBase): # auto-release on destruction del(other_lock_file) + gc.collect() lock_file._obtain_lock_or_raise() lock_file._release_lock() -- cgit v1.2.1