Fix tests

This commit is contained in:
László Károlyi 2020-11-19 14:29:09 +01:00
parent d3ec33f878
commit 43a3a08499
Signed by untrusted user: karolyi
GPG Key ID: 2DCAF25E55735BFE
2 changed files with 3 additions and 3 deletions

View File

@ -29,11 +29,11 @@ class BlacklistCheckTestCase(TestCase):
with self.assertLogs():
self.assertFalse(expr=validate_email(
email_address='pa2@mailinator.com', check_regex=False,
use_blacklist=True))
use_blacklist=True, debug=True))
with self.assertLogs():
self.assertFalse(expr=validate_email(
email_address='pa2@mailinator.com', check_regex=True,
use_blacklist=True))
use_blacklist=True, debug=True))
def test_blacklist_negative(self):
'Allows a domain not in the blacklist.'

View File

@ -61,7 +61,7 @@ def _smtp_ehlo_tls(smtp: SMTP, helo_host: str):
try:
smtp.starttls()
code, message = smtp.ehlo(name=helo_host)
except SMTPNotSupportedError as exc:
except SMTPNotSupportedError:
# The server does not support the STARTTLS extension
pass
except RuntimeError: