Skip to content

Commit

Permalink
prune exception cause
Browse files Browse the repository at this point in the history
  • Loading branch information
fjetter committed Oct 21, 2021
1 parent aa2384f commit 5d1dedb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion distributed/utils_test.py
Expand Up @@ -980,7 +980,9 @@ async def coro():
task.cancel()
while not task.cancelled():
await asyncio.sleep(0.01)
raise TimeoutError(f"Test timeout.\n{buffer.getvalue()}")
raise TimeoutError(
f"Test timeout.\n{buffer.getvalue()}"
) from None
finally:
if client and c.status not in ("closing", "closed"):
await c._close(fast=s.status == Status.closed)
Expand Down

0 comments on commit 5d1dedb

Please sign in to comment.