File tree 1 file changed +8
-7
lines changed
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -1497,13 +1497,14 @@ async def test_tls_version(self):
1497
1497
'&ssl_min_protocol_version=TLSv1.1'
1498
1498
'&ssl_max_protocol_version=TLSv1.1'
1499
1499
)
1500
- with self .assertRaisesRegex (ssl .SSLError , 'no protocols' ):
1501
- await self .connect (
1502
- dsn = 'postgresql://ssl_user@localhost/postgres'
1503
- '?sslmode=require'
1504
- '&ssl_min_protocol_version=TLSv1.2'
1505
- '&ssl_max_protocol_version=TLSv1.1'
1506
- )
1500
+ if not ssl .OPENSSL_VERSION .startswith ('LibreSSL' ):
1501
+ with self .assertRaisesRegex (ssl .SSLError , 'no protocols' ):
1502
+ await self .connect (
1503
+ dsn = 'postgresql://ssl_user@localhost/postgres'
1504
+ '?sslmode=require'
1505
+ '&ssl_min_protocol_version=TLSv1.2'
1506
+ '&ssl_max_protocol_version=TLSv1.1'
1507
+ )
1507
1508
con = await self .connect (
1508
1509
dsn = 'postgresql://ssl_user@localhost/postgres'
1509
1510
'?sslmode=require'
You can’t perform that action at this time.
0 commit comments