mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
grr2
This commit is contained in:
parent
224eb6bbd0
commit
ba21c51e97
@ -70,7 +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)
|
print(1111111, sys.executable, sys.setup_dir, child)
|
||||||
while child.poll() is None:
|
while child.poll() is None:
|
||||||
if os.path.exists('ready'):
|
if os.path.exists('ready'):
|
||||||
break
|
break
|
||||||
@ -85,6 +85,7 @@ class IPCLockTest(unittest.TestCase):
|
|||||||
|
|
||||||
|
|
||||||
def other1():
|
def other1():
|
||||||
|
print('in other')
|
||||||
e = ExclusiveFile('test')
|
e = ExclusiveFile('test')
|
||||||
with e:
|
with e:
|
||||||
os.mkdir('ready')
|
os.mkdir('ready')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user