def test_00_null_submit(self): with self.assertRaises(EnvironmentError) as error: job.submit(ffi.NULL, self.basic_jobspec) self.assertEqual(error.exception.errno, errno.EINVAL) with self.assertRaises(EnvironmentError) as error: job.submit_get_id(ffi.NULL) self.assertEqual(error.exception.errno, errno.EINVAL) with self.assertRaises(EnvironmentError) as error: job.submit(self.fh, ffi.NULL) self.assertEqual(error.exception.errno, errno.EINVAL)
def test_00_null_submit(self): with self.assertRaises(EnvironmentError) as error: job.submit(ffi.NULL, self.jobspec) self.assertEqual(error.exception.errno, errno.EINVAL) with self.assertRaises(EnvironmentError) as error: job.submit_get_id(ffi.NULL) self.assertEqual(error.exception.errno, errno.EINVAL) with self.assertRaises(EnvironmentError) as error: job.submit(self.fh, ffi.NULL) self.assertEqual(error.exception.errno, errno.EINVAL)
def submit_cb(f, arg): jobid = job.submit_get_id(f) h.rpc("job-info.list-id", dict(id=jobid, attrs=attrs)).then(list_cb)
def submit_cb(f): SUBMITTED_JOBS.append(job.submit_get_id(f))
def submit_cb(f): jobs.append(job.submit_get_id(f))