]> git.ipfire.org Git - thirdparty/psycopg.git/commit
test(pool): verify the overriding of `close()` to act as `putconn()` maint-pool-3.2
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:11:13 +0000 (00:11 +0200)
commit035c135124979f3a27533bb7e184fc70abdfd811
tree6d794750a9cabc6670174e91f61b897dc7d6a97b
parent7e11061c87376ee9a244f0b8c71cc946e8b39518
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