summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-05-07 17:42:39 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-05-07 17:42:39 (GMT)
commitd7f12f30e48a599b41f03327321a75685f38ca0f (patch)
treeddfeb0a4cd913ccdca7481bef9dcdb9e7389acb9 /Lib/test
parent8b7664d0b81b65acf1e1946adf22d72cfa2dff26 (diff)
parent5bcc50c1b55527c18f91ca13d90d05a221b91a65 (diff)
downloadcpython-d7f12f30e48a599b41f03327321a75685f38ca0f.zip
cpython-d7f12f30e48a599b41f03327321a75685f38ca0f.tar.gz
cpython-d7f12f30e48a599b41f03327321a75685f38ca0f.tar.bz2
Merge: Issue #11927: SMTP_SSL now uses port 465 by default as documented.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_smtpnet.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_smtpnet.py b/Lib/test/test_smtpnet.py
index f0f1edd..0198ab6 100644
--- a/Lib/test/test_smtpnet.py
+++ b/Lib/test/test_smtpnet.py
@@ -17,6 +17,13 @@ class SmtpSSLTest(unittest.TestCase):
server.ehlo()
server.quit()
+ def test_connect_default_port(self):
+ support.get_attribute(smtplib, 'SMTP_SSL')
+ with support.transient_internet(self.testServer):
+ server = smtplib.SMTP_SSL(self.testServer)
+ server.ehlo()
+ server.quit()
+
def test_main():
support.run_unittest(SmtpSSLTest)