Skip to content

Commit 999d7a6

Browse files
committed
test: skip ssl test if libpq runtime > 16
Close #1619
1 parent 3eee3e3 commit 999d7a6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_connection.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1922,6 +1922,10 @@ def test_ssl_not_supported(self):
19221922
@skip_before_libpq(9, 5)
19231923
@skip_after_libpq(16)
19241924
def test_ssl_attribute(self):
1925+
# Skip this test even if libpq built == 15, runtime == 16 (see #1619)
1926+
if ext.libpq_version() >= 160000:
1927+
return self.skipTest("libpq runtime version == %s" % ext.libpq_version())
1928+
19251929
attribs = self.conn.info.ssl_attribute_names
19261930
self.assert_(attribs)
19271931
if self.conn.info.ssl_in_use:

0 commit comments

Comments
 (0)