summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_smtpnet.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-40275: Use new test.support helper submodules in tests (GH-21151)Hai Shi2020-06-251-1/+2
| | | | | | | | | | | | | Use new test.support helper submodules in tests: * distutils tests * test_buffer * test_compile * test_filecmp * test_fileinput * test_readline * test_smtpnet * test_structmembers * test_tools
* bpo-40275: Move transient_internet from test.support to socket_helper (GH-19711)Serhiy Storchaka2020-04-291-6/+7
|
* bpo-31346: Use PROTOCOL_TLS_CLIENT/SERVER (#3058)Christian Heimes2017-09-151-2/+6
| | | | | | Replaces PROTOCOL_TLSv* and PROTOCOL_SSLv23 with PROTOCOL_TLS_CLIENT and PROTOCOL_TLS_SERVER. Signed-off-by: Christian Heimes <christian@python.org>
* Issue #21741: Update 147 test modules to use test discovery.Zachary Ware2015-04-131-4/+1
| | | | | | | I have compared output between pre- and post-patch runs of these tests to make sure there's nothing missing and nothing broken, on both Windows and Linux. The only differences I found were actually tests that were previously *not* run.
* Issue #23527: Update Gmail port number for STARTTLS to 587.Berker Peksag2015-03-021-1/+1
| | | | Patch by Alex Shkop.
* Issue #20957: test_smtpnet now uses support.transient_internet() to callVictor Stinner2014-09-031-2/+5
| | | | | check_ssl_verifiy(), so only test_connect_using_sslcontext_verified() is skipped if smtp.gmail.com cannot be joined, not the whole file.
* Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-161-2/+0
|\ | | | | | | | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang lines in the unittestgui and checkpip scripts.
| * Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-161-2/+0
| | | | | | | | | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang line to use python3 executable in the unittestgui script.
* | Issue #19785: smtplib now supports SSLContext.check_hostname and server nameChristian Heimes2013-12-021-4/+26
|/ | | | indication for TLS/SSL connections.
* test_smtpnet: Skip STARTTLS test if the server doesn't support it.Nadeem Vawda2011-07-301-1/+7
| | | | | This issue can arise with ISPs that redirect all connections on port 25 to their own (crappy) mail servers.
* Skip test_smtpnet when ssl is not availableAntoine Pitrou2011-05-181-1/+2
|
* Also protect ehlo() and quit() with the transient_internet() context managerAntoine Pitrou2011-05-181-8/+8
|
* Issue #8809: The SMTP_SSL constructor and SMTP.starttls() now supportAntoine Pitrou2011-05-181-1/+26
| | | | | passing a `context` argument pointing to an ssl.SSLContext instance. Patch by Kasun Herath.
* Merge: Issue #11927: SMTP_SSL now uses port 465 by default as documented.Antoine Pitrou2011-05-071-0/+7
|\
| * Issue #11927: SMTP_SSL now uses port 465 by default as documented. Patch by ↵Antoine Pitrou2011-05-071-0/+7
| | | | | | | | Kasun Herath.
| * Merged revisions 85423 via svnmerge fromAntoine Pitrou2010-10-131-1/+2
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85423 | antoine.pitrou | 2010-10-13 19:14:16 +0200 (mer., 13 oct. 2010) | 3 lines Protect test_smtpnet against connection failures ........
* | Protect test_smtpnet against connection failuresAntoine Pitrou2010-10-131-1/+2
| |
* | convert shebang lines: python -> python3Benjamin Peterson2010-03-111-1/+1
|/
* Merged revisions 72838-72839 via svnmerge fromR. David Murray2009-05-231-5/+2
| | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r72838 | r.david.murray | 2009-05-22 22:16:58 -0400 (Fri, 22 May 2009) | 3 lines Don't be so wordy in requires('network') in case other tests are added later, and skip the existing test if SSL is not available. ........ r72839 | r.david.murray | 2009-05-22 22:19:36 -0400 (Fri, 22 May 2009) | 2 lines Fix spelling left over from testing. ........
* Merged revisions 72835 via svnmerge fromR. David Murray2009-05-231-0/+26
svn+ssh://pythondev@svn.python.org/python/trunk ........ r72835 | r.david.murray | 2009-05-22 20:48:58 -0400 (Fri, 22 May 2009) | 4 lines Fix Issue #4066: smtplib.SMTP_SSL._get_socket now correctly returns the socket. Patch by Farhan Ahmad, test by Marcin Bachry. ........