(self)
| 982 | state.should_terminate = original_should_terminate |
| 983 | |
| 984 | def test_from_message_invalid_kwargs(self): |
| 985 | m = self.TaskMessage(self.mytask.name, args=(), kwargs='foo') |
| 986 | req = Request(m, app=self.app) |
| 987 | with pytest.raises(InvalidTaskError): |
| 988 | raise req.execute().exception.exc |
| 989 | |
| 990 | def test_on_hard_timeout_acks_late(self, patching): |
| 991 | error = patching('celery.worker.request.error') |