Skip to content

Commit

Permalink
test: adapt ssl test to libpq 15
Browse files Browse the repository at this point in the history
  • Loading branch information
dvarrazzo committed Oct 6, 2022
1 parent c7326f8 commit 6d815f5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1928,11 +1928,16 @@ def test_ssl_attribute(self):
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))


Expand Down

0 comments on commit 6d815f5

Please sign in to comment.