Skip to content

Commit

Permalink
test: skip ssl test if libpq runtime > 16
Browse files Browse the repository at this point in the history
Close #1619
  • Loading branch information
dvarrazzo committed Sep 10, 2023
1 parent 3eee3e3 commit 55d8899
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 55d8899

Please sign in to comment.