This commit is contained in:
Kovid Goyal 2017-05-03 18:25:24 +05:30
parent 224eb6bbd0
commit ba21c51e97
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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')