summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-05-07 17:39:37 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-05-07 17:39:37 (GMT)
commitc1d520634a25fac5dea41f3af70273fc0b3a11ae (patch)
tree3f35688d5bc2653736281393271e50ba97f8558a /Lib/test
parent63e4230c3865f6b15538b61fbecd5d0286b1f0a9 (diff)
downloadcpython-c1d520634a25fac5dea41f3af70273fc0b3a11ae.zip
cpython-c1d520634a25fac5dea41f3af70273fc0b3a11ae.tar.gz
cpython-c1d520634a25fac5dea41f3af70273fc0b3a11ae.tar.bz2
Issue #11927: SMTP_SSL now uses port 465 by default as documented. Patch by Kasun Herath.
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 6634df7..1571ca3 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)