summaryrefslogtreecommitdiff
path: root/git/test/test_util.py
diff options
context:
space:
mode:
authorKostis Anagnostopoulos <ankostis@gmail.com>2016-09-29 01:07:41 +0200
committerKostis Anagnostopoulos <ankostis@gmail.com>2016-09-29 01:46:15 +0200
commit395955609dfd711cc4558e2b618450f3514b28c1 (patch)
tree9ee15a36cbc05f9b509aedbda2373cfc0ace2d17 /git/test/test_util.py
parentf1d2d0683afa6328b6015c6a3aa6a6912a055756 (diff)
downloadgitpython-395955609dfd711cc4558e2b618450f3514b28c1.tar.gz
FIX hook TC on PY3+Win & indeterministic lock timing.
+ Cannot `index.path` into ENV, it is bytes! + The hook TC never runs on linux! + Unblock removal of odbfile in perf-large streams TC. + Attempt to unblock removal of submodule file by intensive cleaning. more unblock files
Diffstat (limited to 'git/test/test_util.py')
-rw-r--r--git/test/test_util.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/git/test/test_util.py b/git/test/test_util.py
index eae9fbc7..36fb5be3 100644
--- a/git/test/test_util.py
+++ b/git/test/test_util.py
@@ -90,10 +90,11 @@ class TestUtils(TestBase):
wait_lock = BlockingLockFile(my_file, 0.05, wait_time)
self.failUnlessRaises(IOError, wait_lock._obtain_lock)
elapsed = time.time() - start
- extra_time = 0.2
+ extra_time = 0.02
if is_win:
+ # for Appveyor
extra_time *= 6 # NOTE: Indeterministic failures here...
- self.assertLess(elapsed, wait_time + 0.02)
+ self.assertLess(elapsed, wait_time + extra_time)
def test_user_id(self):
assert '@' in get_user_id()