修复 TaskWrapper.throw 方法以支持取消任务时传递异常#221
Conversation
tingQian
left a comment
There was a problem hiding this comment.
修复 TaskWrapper.throw 方法以支持取消任务时传递异常
|
Could you please add some tests reproduces this problem? |
|
@tingQian ➜ /workspaces/aiormq (feature/abc-docs-update) $ poetry run pytest tests/test_taskwrapper_throw.py -s tests/test_taskwrapper_throw.py test_throw_with_instance 2 <ExceptionInfo RuntimeError('boom') tblen=2> test_throw_with_cancellederror 2 <ExceptionInfo CancelledError() tblen=2> |
|
这是问题分析 aiormq/abc.py:TaskWrapper.throw()def throw(self, exception: ExceptionType) -> None: aiormq/abc.py:TaskWrapper.__inner()async def __inner(self) -> Any: |
No description provided.