From 999d7a6d01a1763030ef92a9b77731238f0b0135 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Sun, 10 Sep 2023 22:54:20 +0100 Subject: [PATCH] test: skip ssl test if libpq runtime > 16 Close #1619 --- tests/test_connection.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_connection.py b/tests/test_connection.py index b1fb315f5..728176c2f 100755 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -1922,6 +1922,10 @@ def test_ssl_not_supported(self): @skip_before_libpq(9, 5) @skip_after_libpq(16) def test_ssl_attribute(self): + # Skip this test even if libpq built == 15, runtime == 16 (see #1619) + if ext.libpq_version() >= 160000: + return self.skipTest("libpq runtime version == %s" % ext.libpq_version()) + attribs = self.conn.info.ssl_attribute_names self.assert_(attribs) if self.conn.info.ssl_in_use: