mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
grrr
This commit is contained in:
parent
246bf60c88
commit
2c368cf64b
@ -70,6 +70,7 @@ class IPCLockTest(unittest.TestCase):
|
|||||||
|
|
||||||
def test_exclusive_file_other_process(self):
|
def test_exclusive_file_other_process(self):
|
||||||
child = run_worker('calibre.utils.test_lock', 'other1')
|
child = run_worker('calibre.utils.test_lock', 'other1')
|
||||||
|
print(1111111, child)
|
||||||
while child.poll() is None:
|
while child.poll() is None:
|
||||||
if os.path.exists('ready'):
|
if os.path.exists('ready'):
|
||||||
break
|
break
|
||||||
@ -87,6 +88,7 @@ def other1():
|
|||||||
e = ExclusiveFile('test')
|
e = ExclusiveFile('test')
|
||||||
with e:
|
with e:
|
||||||
os.mkdir('ready')
|
os.mkdir('ready')
|
||||||
|
print(22222222)
|
||||||
time.sleep(30)
|
time.sleep(30)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user