def lockb(wait): b = utils.InterProcessLock(os.path.join(tmpdir, 'b')) with b: wait.wait()
def locka(wait): a = utils.InterProcessLock(os.path.join(tmpdir, 'a')) with a: wait.wait() self.completed = True