changeset 603:7fe35e3453a6 pytest2

read_lock.acquire and write_lock.acquire should return True.
author pkumar <contactprashantat@gmail.com>
date Wed, 29 Jun 2011 16:40:04 +0530
parents cc24cc284cde
children 6b926426e3d2
files MoinMoin/util/_tests/test_lock.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/util/_tests/test_lock.py	Wed Jun 29 16:01:47 2011 +0530
+++ b/MoinMoin/util/_tests/test_lock.py	Wed Jun 29 16:40:04 2011 +0530
@@ -145,11 +145,11 @@
         write_lock = WriteLock(self.lock_dir, timeout)
         read_lock = ReadLock(self.lock_dir)
         # acquired ReadLock
-        read_lock.acquire(0.1)
+        assert read_lock.acquire(0.1)
         result_before = write_lock._haveReadLocks()
         assert result_before
         # try to acquire WriteLock
-        write_lock.acquire()
+        assert write_lock.acquire()
         result_after = write_lock._haveReadLocks()
         assert result_after == False