Commit 6003ff76 authored by Antoine Pitrou's avatar Antoine Pitrou

Protect test_smtpnet against connection failures

parent d4958c28
......@@ -12,7 +12,8 @@ class SmtpSSLTest(unittest.TestCase):
def test_connect(self):
support.get_attribute(smtplib, 'SMTP_SSL')
server = smtplib.SMTP_SSL(self.testServer, self.remotePort)
with support.transient_internet(self.testServer):
server = smtplib.SMTP_SSL(self.testServer, self.remotePort)
server.ehlo()
server.quit()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment