Skip to content

Commit

Permalink
update TimeoutError exception class
Browse files Browse the repository at this point in the history
  • Loading branch information
giancarloromeo committed Aug 19, 2024
1 parent d6f7479 commit 0653fe2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ async def _run_that_times_out(_: DeferredContext) -> None:

await _assert_mock_call(mocks, key=MockKeys.ON_FINISHED_WITH_ERROR, count=1)
for entry in mocks[MockKeys.ON_FINISHED_WITH_ERROR].call_args_list:
assert "asyncio.exceptions.TimeoutError" in entry.args[0].error
assert "builtins.TimeoutError" in entry.args[0].error

await _assert_mock_call(mocks, key=MockKeys.RUN_DEFERRED, count=0)
await _assert_mock_call(mocks, key=MockKeys.ON_DEFERRED_RESULT, count=0)
Expand Down

0 comments on commit 0653fe2

Please sign in to comment.