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 5, 2022
1 parent 1526489 commit 14c6196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1923,7 +1923,7 @@ def test_ssl_not_supported(self):
def test_ssl_attribute(self):
attribs = self.conn.info.ssl_attribute_names
self.assert_(attribs)
if self.conn.info.ssl_in_use:
if self.conn.info.ssl_in_use or psycopg2.__libpq_version__ >= 150000:
for attrib in attribs:
self.assertIsInstance(self.conn.info.ssl_attribute(attrib), str)
else:
Expand Down

0 comments on commit 14c6196

Please sign in to comment.