Skip to content

Commit 39168d0

Browse files
committed
Fix py3.6
1 parent 01c393f commit 39168d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_postgres.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ async def test_ssl_true(self):
5656
self.db_config["connections"]["models"]["credentials"]["ssl"] = True
5757
try:
5858
await Tortoise.init(self.db_config)
59-
except (ConnectionError, ssl.SSLCertVerificationError):
59+
except (ConnectionError, ssl.SSLError):
6060
pass
6161
else:
62-
self.assertFalse(True, "Expected ConnectionError or SSLCertVerificationError")
62+
self.assertFalse(True, "Expected ConnectionError or SSLError")
6363

6464
async def test_ssl_custom(self):
6565
# Expect connectionerror or pass

0 commit comments

Comments
 (0)