]> git.ipfire.org Git - thirdparty/psycopg.git/commit
test: add test to reproduce the wrong error on disconnect
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 8 Jan 2025 00:16:46 +0000 (01:16 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 8 Jan 2025 12:41:56 +0000 (13:41 +0100)
commit1c3cb15493dde7507047f7d334e6e6e9015c275c
tree25b1d20a14234b191c4c36cd37223c43c9062060
parent61b18b5dba1a2d13ac81ca960e6e21b2c2260c79
test: add test to reproduce the wrong error on disconnect

We raise `OperationalError` instead of `IdleInTransactionSessionTimeout`.

See #988.
tests/test_connection.py
tests/test_connection_async.py