changeset 5735:4a04a256898e

make lock timeout test less timing critical (thanks to piotrb for fixing, GCI 2010)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 28 Nov 2010 20:25:37 +0100
parents a0c4450dce2c
children f3e8f2136279
files MoinMoin/util/_tests/test_lock.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/util/_tests/test_lock.py	Sun Nov 28 17:54:38 2010 +0100
+++ b/MoinMoin/util/_tests/test_lock.py	Sun Nov 28 20:25:37 2010 +0100
@@ -118,7 +118,7 @@
         if second.acquire(0.1):
             py.test.skip("first lock is not exclusive")
         # Second lock should be acquired after timeout
-        assert second.acquire(timeout + 0.1)
+        assert second.acquire(timeout + 0.2)
 
     def unlock(self, lock, delay):
         time.sleep(delay)