diff options
| author | Sebastian Thiel <byronimo@gmail.com> | 2016-10-09 12:04:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-09 12:04:07 +0200 |
| commit | ac9ac551983cc086d9d631f8648d7d591daa2b41 (patch) | |
| tree | 2c43def3eb8304e13e6cbb4959c9776863851003 /git/test | |
| parent | 4e5ef73d3d6d9b973a756fddd329cfa2a24884e2 (diff) | |
| parent | 20b4f49b4e71c90581c68ea7f4cf56160a6bdc79 (diff) | |
| download | gitpython-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.py | 2 |
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() |
