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)
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())