]> git.ipfire.org Git - thirdparty/psycopg.git/commit
test(pool): verify the overriding of `close()` to act as `putconn()`
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 16 Apr 2025 18:57:37 +0000 (20:57 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 16 Apr 2025 22:05:56 +0000 (00:05 +0200)
commit9bde1475f0e77beaf285d72f97c9ead721e8cd94
treef5826771d1e4003a84401ad63a002ceedf216fb3
parent5c14dd44caaa8758c901de52a62918b611bbb2e7
test(pool): verify the overriding of `close()` to act as `putconn()`

We would like to maintain this possibility on a best-effort basis. The
hack has been mentioned in #1046 and upstream in
https://github.com/sqlalchemy/sqlalchemy/discussions/12522 and is useful
to integrate psycopg pool with the SQLAlchemy NullPool.
tests/pool/test_pool.py
tests/pool/test_pool_async.py