summaryrefslogtreecommitdiffstats
path: root/Lib/test/mock_socket.py
Commit message (Collapse)AuthorAgeFilesLines
* Revert "bpo-28533: Remove asyncore, asynchat, smtpd modules (GH-29521)" ↵Victor Stinner2021-12-071-2/+2
| | | | | (GH-29951) This reverts commit 9bf2cbc4c498812e14f20d86acb61c53928a5a57.
* bpo-28533: Remove asyncore, asynchat, smtpd modules (GH-29521)Victor Stinner2021-11-151-2/+2
| | | | | | | | | | | | | | | | Remove the asyncore and asynchat modules, deprecated in Python 3.6: use the asyncio module instead. Remove the smtpd module, deprecated in Python 3.6: the aiosmtpd module can be used instead, it is based on asyncio. * Remove asyncore, asynchat and smtpd documentation * Remove test_asyncore, test_asynchat and test_smtpd * Rename Lib/asynchat.py to Lib/test/support/_asynchat.py * Rename Lib/asyncore.py to Lib/test/support/_asyncore.py * Rename Lib/smtpd.py to Lib/test/support/_smtpd.py * Remove DeprecationWarning from private _asyncore, _asynchat and _smtpd modules * _smtpd: remove deprecated properties
* bpo-42756: Configure LMTP Unix-domain socket to use global default timeout ↵Ross2021-01-011-0/+7
| | | | when timeout not provided (GH-23969)
* bpo-40462: fix variable and function names (GH-19832)Furkan Önder2020-05-011-1/+1
| | | Automerge-Triggered-By: @vstinner
* #21725: Add RFC 6531 (SMTPUTF8) support to smtpd.R David Murray2014-08-091-1/+1
| | | | | | | | | | | Patch by Milan Oberkirch, developed as part of his 2014 GSOC project. Note that this also fixes a bug in mock_socket ('getpeername' was returning a simple string instead of the tuple required for IPvX protocols), a bug in DebugServer with respect to handling binary data (should have been fixed when decode_data was introduced, but wasn't found until this patch was written), and a long-standing bug in DebugServer (it was printing an extra blank line at the end of the displayed message text).
* #14758: Fix the fix (fix getaddrinfo in mock_socket)R David Murray2014-06-111-3/+3
| | | | I forgot to run all the affected tests when I fixed smtpd.
* #14758: add IPv6 support to smtpd.R David Murray2014-06-111-4/+7
| | | | Patch by Milan Oberkirch.
* merge with 3.3Georg Brandl2014-02-101-2/+7
|\
| * #16042: CVE-2013-1752: smtplib fix for unlimited readline() from socketGeorg Brandl2014-01-251-2/+7
| |
* | Issue #16647: save socket error details in LMTP.connect()Andrew Svetlov2012-12-171-6/+2
|/ | | | Initial patch by Serhiy Storchaka.
* Fix closes Issue11281 - smtplib.STMP gets source_address parameter, which ↵Senthil Kumaran2011-07-301-1/+2
| | | | adds the ability to bind to specific source address on a machine with multiple interfaces. Patch by Paulo Scardine.
* fix test_smtplib/test_smtpd collision through pre-loaded reply data in ↵Richard Jones2010-08-041-0/+1
| | | | mock_socket
* improvements to test_smtplib per issue2423Richard Jones2010-08-031-0/+153
merged the socket mock introduced in test_smtpd