summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_smtpnet.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-05-07 17:41:33 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-05-07 17:41:33 (GMT)
commit5bcc50c1b55527c18f91ca13d90d05a221b91a65 (patch)
tree6b9514a5f4166514dbf0f019edd060bf6b1aa82a /Lib/test/test_smtpnet.py
parent4c1aebd88bc71fcbca26279bd21f971f93acb641 (diff)
parentc1d520634a25fac5dea41f3af70273fc0b3a11ae (diff)
downloadcpython-5bcc50c1b55527c18f91ca13d90d05a221b91a65.zip
cpython-5bcc50c1b55527c18f91ca13d90d05a221b91a65.tar.gz
cpython-5bcc50c1b55527c18f91ca13d90d05a221b91a65.tar.bz2
Merge: Issue #11927: SMTP_SSL now uses port 465 by default as documented.
Diffstat (limited to 'Lib/test/test_smtpnet.py')
-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)