]> git.ipfire.org Git - thirdparty/psycopg.git/commit
test: add test to verify that a server disconnection now raises AdminShutdown
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 8 Jan 2025 12:36:26 +0000 (13:36 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 9 Jan 2025 13:04:54 +0000 (14:04 +0100)
commit3df17c411f743d5e676ff01c71695276bf312c47
tree281039eb5de0adab410a0eadc7b937f418fb85db
parent2b8ab6836d2997acae2e9d022e4dfad71c1beff7
test: add test to verify that a server disconnection now raises AdminShutdown

Previously it was raising OperationalError, but this was just the result
of the issue reported in #988. Note that AdminShutdown is a subclass of
OperationalError, therefore this change is backward compatible.
docs/news.rst
tests/test_connection.py
tests/test_connection_async.py