Skip to content

Commit

Permalink
Update starlette/testclient.py
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert authored Dec 28, 2024
1 parent 2ef7a53 commit 509b9c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions starlette/testclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ def _handle_task(portal: anyio.abc.BlockingPortal, async_fn: StartableAsyncFn[_T
try:
yield result
finally:
# can't raise an exception from stack.callback on Python 3.8
# due to https://github.com/python/cpython/issues/69968
fut.result()


Expand Down

0 comments on commit 509b9c0

Please sign in to comment.