Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Expand Up @@ -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,
Expand Down Expand Up @@ -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()

Expand Down