summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2022-10-05 20:35:59 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2022-10-06 02:09:19 +0100
commit6d815f5df95b7c920df0f9d9bcfb8ecc47510cbc (patch)
tree7c9865a2c3254042bb74dd12ca8a8b30dfd113a7
parentc7326f8da7c0209917c221d74d92960dd83a7dc3 (diff)
downloadpsycopg2-6d815f5df95b7c920df0f9d9bcfb8ecc47510cbc.tar.gz
test: adapt ssl test to libpq 15
See #1506, PostgreSQL bug 17625 (https://www.postgresql.org/message-id/17625-fc47c78b7d71b534%40postgresql.org)
-rwxr-xr-xtests/test_connection.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_connection.py b/tests/test_connection.py
index c8009cd..f9377e2 100755
--- a/tests/test_connection.py
+++ b/tests/test_connection.py
@@ -1928,11 +1928,16 @@ class TestConnectionInfo(ConnectingTestCase):
self.assertIsInstance(self.conn.info.ssl_attribute(attrib), str)
else:
for attrib in attribs:
+ # Behaviour changed in PostgreSQL 15
+ if attrib == "library":
+ continue
self.assertIsNone(self.conn.info.ssl_attribute(attrib))
self.assertIsNone(self.conn.info.ssl_attribute('wat'))
for attrib in attribs:
+ if attrib == "library":
+ continue
self.assertIsNone(self.bconn.info.ssl_attribute(attrib))