mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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 ........
This commit is contained in:
parent
674f40092a
commit
a0bf56d4f1
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue