Skip to content

Use flock() for file locking #513

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Oct 9, 2016
Prev Previous commit
Next Next commit
Force GC collection
  • Loading branch information
expobrain committed Sep 19, 2016
commit f0fcc072b37d6e773e18ea561ebce8ccba2ba19c
2 changes: 2 additions & 0 deletions git/test/test_util.py
Original file line number Diff line number Diff line change
@@ -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 @@ def test_lock_file(self):

# auto-release on destruction
del(other_lock_file)
gc.collect()
lock_file._obtain_lock_or_raise()
lock_file._release_lock()