(self)
| 1124 | assert R == repr(4 ** 4) |
| 1125 | |
| 1126 | def test_trace_catches_exception(self): |
| 1127 | |
| 1128 | @self.app.task(request=None, shared=False) |
| 1129 | def raising(): |
| 1130 | raise KeyError('baz') |
| 1131 | |
| 1132 | with pytest.warns(RuntimeWarning): |
| 1133 | res = trace_task(raising, uuid(), [], {}, app=self.app)[0] |
| 1134 | assert isinstance(res, ExceptionInfo) |
| 1135 | |
| 1136 | def test_worker_task_trace_handle_retry(self): |
| 1137 | tid = uuid() |
nothing calls this directly
no test coverage detected