Commit 9e1ef1a1 authored by Antoine Pitrou's avatar Antoine Pitrou

Merged revisions 85423 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85423 | antoine.pitrou | 2010-10-13 19:14:16 +0200 (mer., 13 oct. 2010) | 3 lines

  Protect test_smtpnet against connection failures
........
parent bcb61956
......@@ -12,7 +12,8 @@ class SmtpSSLTest(unittest.TestCase):
def test_connect(self):
test_support.get_attribute(smtplib, 'SMTP_SSL')
server = smtplib.SMTP_SSL(self.testServer, self.remotePort)
with test_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