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 01c393f commit 39168d0Copy full SHA for 39168d0
tests/test_postgres.py
@@ -56,10 +56,10 @@ async def test_ssl_true(self):
56
self.db_config["connections"]["models"]["credentials"]["ssl"] = True
57
try:
58
await Tortoise.init(self.db_config)
59
- except (ConnectionError, ssl.SSLCertVerificationError):
+ except (ConnectionError, ssl.SSLError):
60
pass
61
else:
62
- self.assertFalse(True, "Expected ConnectionError or SSLCertVerificationError")
+ self.assertFalse(True, "Expected ConnectionError or SSLError")
63
64
async def test_ssl_custom(self):
65
# Expect connectionerror or pass
0 commit comments