[Python-checkins] r85423 - python/branches/py3k/Lib/test/test_smtpnet.py
antoine.pitrou
python-checkins at python.org
Wed Oct 13 19:14:16 CEST 2010
Author: antoine.pitrou
Date: Wed Oct 13 19:14:16 2010
New Revision: 85423
Log:
Protect test_smtpnet against connection failures
Modified:
python/branches/py3k/Lib/test/test_smtpnet.py
Modified: python/branches/py3k/Lib/test/test_smtpnet.py
==============================================================================
--- python/branches/py3k/Lib/test/test_smtpnet.py (original)
+++ python/branches/py3k/Lib/test/test_smtpnet.py Wed Oct 13 19:14:16 2010
@@ -12,7 +12,8 @@
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()
More information about the Python-checkins
mailing list