]> git.ipfire.org Git - thirdparty/httpx.git/commit
Issue warning on unclosed `AsyncClient`. (#1197)
authorcdeler <serj.krotov@gmail.com>
Wed, 2 Sep 2020 12:02:59 +0000 (15:02 +0300)
committerGitHub <noreply@github.com>
Wed, 2 Sep 2020 12:02:59 +0000 (13:02 +0100)
commitdef9f1c320fd416c8ab8a5359afa36467ad831ad
treeaeda101e6d81dc7dc7b61298c9d07de881cd05fc
parentec06ba244e0a59e3152491c7899713222ebd7ac6
Issue warning on unclosed `AsyncClient`. (#1197)

* Made Client and AsyncClient checking for being closed in __del__ (#871)

* Changed the AsyncClient closing warning type from ResourceWarning (which is too quiet) to UserWarning  (#871)

* Fixed tests and client's __exit__ and __aexit__ after the difficult merge (#871)

* Update test_proxies.py

* Update test_proxies.py

Co-authored-by: Tom Christie <tom@tomchristie.com>
httpx/_client.py
tests/client/test_async_client.py
tests/client/test_client.py
tests/client/test_proxies.py