Skip to content

Commit 5a2c5b9

Browse files
committed
Fix test_tls_version for LibreSSL
Context: python/cpython#78182
1 parent 43bd82c commit 5a2c5b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_connect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1497,7 +1497,7 @@ async def test_tls_version(self):
14971497
'&ssl_min_protocol_version=TLSv1.1'
14981498
'&ssl_max_protocol_version=TLSv1.1'
14991499
)
1500-
with self.assertRaisesRegex(ssl.SSLError, 'no protocols'):
1500+
with self.assertRaises((ssl.SSLError, ValueError)):
15011501
await self.connect(
15021502
dsn='postgresql://ssl_user@localhost/postgres'
15031503
'?sslmode=require'

0 commit comments

Comments
 (0)