From 14c6196584962ea891a6a7327c195bf4d7c95948 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Wed, 5 Oct 2022 20:35:59 +0100 Subject: [PATCH] test: adapt ssl test to libpq 15 See #1506, PostgreSQL bug 17625 (https://www.postgresql.org/message-id/17625-fc47c78b7d71b534%40postgresql.org) --- tests/test_connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_connection.py b/tests/test_connection.py index c8009cd09..e68107254 100755 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -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: