]> 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>
Fri, 10 Jan 2025 00:39:29 +0000 (01:39 +0100)
commit8ba5470c22ac74530795508c0b46d53ab10dbdff
tree739cd9eb708dee5bf29430db6f004a696d3ff72b
parenta8262ec89e11192379b43fd28fc288a4cd251b37
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