summaryrefslogtreecommitdiffstats
path: root/Lib/test/mock_socket.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2014-08-09 20:40:49 (GMT)
committerR David Murray <rdmurray@bitdance.com>2014-08-09 20:40:49 (GMT)
commit2539e6744b1405404c9e2c02af33381bd349106e (patch)
treec0d7b49152de3788e15df46c9560124c6208b6c9 /Lib/test/mock_socket.py
parentae04ba1952fe7610fb93cc127b9ac6fb3782cef4 (diff)
downloadcpython-2539e6744b1405404c9e2c02af33381bd349106e.zip
cpython-2539e6744b1405404c9e2c02af33381bd349106e.tar.gz
cpython-2539e6744b1405404c9e2c02af33381bd349106e.tar.bz2
#21725: Add RFC 6531 (SMTPUTF8) support to smtpd.
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).
Diffstat (limited to 'Lib/test/mock_socket.py')
-rw-r--r--Lib/test/mock_socket.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/mock_socket.py b/Lib/test/mock_socket.py
index 441e29f..b28c473 100644
--- a/Lib/test/mock_socket.py
+++ b/Lib/test/mock_socket.py
@@ -102,7 +102,7 @@ class MockSocket:
return len(data)
def getpeername(self):
- return 'peer'
+ return ('peer-address', 'peer-port')
def close(self):
pass