mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-25 10:23:43 +03:00
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:
parent
c7326f8da7
commit
6d815f5df9
|
@ -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))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user