forked from karolyi/py3-validate-email
Fix tests
This commit is contained in:
parent
d3ec33f878
commit
43a3a08499
|
@ -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.'
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue