diff options
-rw-r--r-- | Lib/test/test_smtpnet.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_smtpnet.py b/Lib/test/test_smtpnet.py index 5b1b38c0..6634df7 100644 --- a/Lib/test/test_smtpnet.py +++ b/Lib/test/test_smtpnet.py @@ -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() |