]> git.ipfire.org Git - thirdparty/httpx.git/commit
Close responses when on cancellations occur during reading. (#2156)
authorTom Christie <tom@tomchristie.com>
Thu, 31 Mar 2022 12:41:40 +0000 (13:41 +0100)
committerGitHub <noreply@github.com>
Thu, 31 Mar 2022 12:41:40 +0000 (13:41 +0100)
commit3350d7e6831e2d942f68653b2f58cfa5ecb0bacd
tree5a2f4abce28cdf9f7cc3fec508d9621deee72090
parent67c297069f3d6b034069882428e4c1dd303d693c
Close responses when on cancellations occur during reading. (#2156)

* Test case for clean stream closing on cancellations

* Test case for clean stream closing on cancellations

* Linting on tests

* responses should close on any BaseException
httpx/_client.py
tests/client/test_async_client.py