def _make_scheduler(self): if not os.path.exists(self.output_dir): os.makedirs(self.output_dir) worker = dict(host='test_remote', python=sys.executable, chdir=self.output_dir, testing=True) s = Scheduler(root='.', worker_config=[worker]) return s
def _make_scheduler(self): workers = [ dict(host='localhost'), dict(host='test_remote', python=sys.executable, chdir=self.other_dir, testing=True) ] try: import execnet except ImportError: raise unittest.SkipTest('This test requires execnet') return Scheduler(root=self.sim_dir, worker_config=workers)
def _make_scheduler(self): worker = dict(host='localhost') s = Scheduler(root='.', worker_config=[worker]) return s