コード例 #1
0
ファイル: t0023-executor.py プロジェクト: gummels/flux-core
 def test_submit_after_shutdown(self):
     executor = FluxExecutor()
     executor.shutdown(wait=True)
     with self.assertRaises(RuntimeError):
         executor.submit(JobspecV1.from_command(["true"]))
     with self.assertRaises(RuntimeError):
         executor.submit(None)
コード例 #2
0
ファイル: t0023-executor.py プロジェクト: tpatki/flux-core
 def test_submit_after_shutdown(self):
     executor = FluxExecutor()
     executor.shutdown(wait=True)
     with self.assertRaises(RuntimeError):
         executor.submit(JobspecV1.from_command(["true"]))
     with self.assertRaises(RuntimeError):
         executor.submit(None)
     with self.assertRaises(RuntimeError):
         executor.attach(5)
     with self.assertRaises(RuntimeError):
         executor.attach(None)
     self.assertFalse(executor._broken_event.is_set())