test: adapt ssl test to libpq 15

See #1506, PostgreSQL bug 17625
(https://www.postgresql.org/message-id/17625-fc47c78b7d71b534%40postgresql.org)
This commit is contained in:
Daniele Varrazzo 2022-10-05 20:35:59 +01:00
parent c7326f8da7
commit 6d815f5df9

View File

@ -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))