MCPcopy
hub / github.com/celery/celery / test_execute_jail_failure

Method test_execute_jail_failure

t/unit/worker/test_request.py:154–159  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

152 assert tid not in _started
153
154 def test_execute_jail_failure(self):
155 ret = jail(
156 self.app, uuid(), self.mytask_raising.name, {}, [4], {},
157 )
158 assert isinstance(ret, ExceptionInfo)
159 assert ret.exception.args == (4,)
160
161 def test_execute_task_ignore_result(self):
162 @self.app.task(shared=False, ignore_result=True)

Callers

nothing calls this directly

Calls 1

jailFunction · 0.85

Tested by

no test coverage detected