Skip to content

Commit

Permalink
Upgrade respx for httpx 0.23.1+ compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipuniverse committed May 24, 2023
1 parent b797723 commit ce8a881
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def _async_call(coro: typing.Coroutine) -> asyncio.Task:
def _response_hook(span, request: "RequestInfo", response: "ResponseInfo"):
span.set_attribute(
HTTP_RESPONSE_BODY,
b"".join([part for part in response[2]]),
b"".join(response[2]),
)


Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ deps =
httpx18: httpx>=0.18.0,<0.19.0
httpx18: respx~=0.17.0
httpx21: httpx>=0.19.0
httpx21: respx~=0.19.0
httpx21: respx~=0.20.1

; FIXME: add coverage testing
; FIXME: add mypy testing
Expand Down

0 comments on commit ce8a881

Please sign in to comment.