File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
src/servicelib/long_running_tasks Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ class TaskExceptionError(BaseLongRunningError):
3636
3737class TaskRaisedUnserializableError (BaseLongRunningError ):
3838 msg_template : str = (
39- "Task {task_id} finished with an unserializable exception: '{exception}'\n {traceback} "
39+ "Task {task_id} finished with an unserializable exception: '{exception}'"
4040 )
4141
4242
Original file line number Diff line number Diff line change @@ -419,9 +419,8 @@ async def test_get_result_finished_with_unpicklable_error(
419419 task_id , with_task_context = empty_context
420420 )
421421 assert result .str_error is not None # nosec
422- error = loads (result .str_error )
423422 with pytest .raises (TaskRaisedUnserializableError , match = "cannot pickle" ):
424- raise error
423+ loads ( result . str_error )
425424
426425
427426async def test_cancel_task_from_different_manager (
You can’t perform that action at this time.
0 commit comments