mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #11927: SMTP_SSL now uses port 465 by default as documented. Patch by Kasun Herath.
This commit is contained in:
parent
63e4230c38
commit
c1d520634a
4 changed files with 15 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue