summaryrefslogtreecommitdiff
path: root/git/test
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2016-10-09 12:04:07 +0200
committerGitHub <noreply@github.com>2016-10-09 12:04:07 +0200
commitac9ac551983cc086d9d631f8648d7d591daa2b41 (patch)
tree2c43def3eb8304e13e6cbb4959c9776863851003 /git/test
parent4e5ef73d3d6d9b973a756fddd329cfa2a24884e2 (diff)
parent20b4f49b4e71c90581c68ea7f4cf56160a6bdc79 (diff)
downloadgitpython-ac9ac551983cc086d9d631f8648d7d591daa2b41.tar.gz
Merge pull request #513 from expobrain/master
Use flock() for file locking
Diffstat (limited to 'git/test')
-rw-r--r--git/test/test_util.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/git/test/test_util.py b/git/test/test_util.py
index e07417b4..6ba3d0d4 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,
@@ -80,6 +81,7 @@ class TestUtils(TestBase):
# auto-release on destruction
del(other_lock_file)
+ gc.collect()
lock_file._obtain_lock_or_raise()
lock_file._release_lock()