Beispiel #1
0
 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)
Beispiel #2
0
 def join(self):
     return desub.join([sys.executable,
                        self.cmd('loop.py')], root=self.tmp)