We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43bd82c commit 5a2c5b9Copy full SHA for 5a2c5b9
tests/test_connect.py
@@ -1497,7 +1497,7 @@ async def test_tls_version(self):
1497
'&ssl_min_protocol_version=TLSv1.1'
1498
'&ssl_max_protocol_version=TLSv1.1'
1499
)
1500
- with self.assertRaisesRegex(ssl.SSLError, 'no protocols'):
+ with self.assertRaises((ssl.SSLError, ValueError)):
1501
await self.connect(
1502
dsn='postgresql://ssl_user@localhost/postgres'
1503
'?sslmode=require'
0 commit comments