def test_default_root(self): self.proc.start() tmp = tempfile.mkdtemp() pr = desub.join([sys.executable, self.cmd('loop.py')], root=tmp) try: assert pr.pid != self.proc.pid, ( 'new root should make separate procs') finally: shutil.rmtree(pr.root)
def join(self): return desub.join([sys.executable, self.cmd('loop.py')], root=self.tmp)