mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
b458cf07c4
commit
44545b0c34
@ -136,6 +136,7 @@ class TestLock(BaseTest):
|
|||||||
self.assertFalse(lock.acquire(shared=False, blocking=False))
|
self.assertFalse(lock.acquire(shared=False, blocking=False))
|
||||||
self.assertFalse(lock.acquire(shared=True, blocking=False))
|
self.assertFalse(lock.acquire(shared=True, blocking=False))
|
||||||
lock.acquire(shared=True)
|
lock.acquire(shared=True)
|
||||||
|
exclusive.join(1)
|
||||||
self.assertFalse(exclusive.is_alive())
|
self.assertFalse(exclusive.is_alive())
|
||||||
lock.release()
|
lock.release()
|
||||||
lock.acquire(shared=False)
|
lock.acquire(shared=False)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user