Issue #11927: SMTP_SSL now uses port 465 by default as documented. Patch by Kasun Herath.

This commit is contained in:
Antoine Pitrou 2011-05-07 19:39:37 +02:00
parent 63e4230c38
commit c1d520634a
4 changed files with 15 additions and 2 deletions

View file

@ -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)