summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_smtplib.py
diff options
context:
space:
mode:
authorJosiah Carlson <josiah.carlson@gmail.com>2008-07-07 04:15:08 (GMT)
committerJosiah Carlson <josiah.carlson@gmail.com>2008-07-07 04:15:08 (GMT)
commitd74900ebb5a22b387b49684990da1925e1d6bdc9 (patch)
tree2bdffc475f22a3db675656e49458f74ebfc39951 /Lib/test/test_smtplib.py
parentd51ee54a232f4986abd18a4113f3af1158c2fd53 (diff)
downloadcpython-d74900ebb5a22b387b49684990da1925e1d6bdc9.zip
cpython-d74900ebb5a22b387b49684990da1925e1d6bdc9.tar.gz
cpython-d74900ebb5a22b387b49684990da1925e1d6bdc9.tar.bz2
Committing Py3k version of changelist 64080 and 64257, along with updated tests
for smtpd, which required updating with the new semantics.
Diffstat (limited to 'Lib/test/test_smtplib.py')
-rw-r--r--Lib/test/test_smtplib.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_smtplib.py b/Lib/test/test_smtplib.py
index 3f3ba6b..6a94658 100644
--- a/Lib/test/test_smtplib.py
+++ b/Lib/test/test_smtplib.py
@@ -14,6 +14,14 @@ from test import support
HOST = support.HOST
+if sys.platform == 'darwin':
+ # select.poll returns a select.POLLHUP at the end of the tests
+ # on darwin, so just ignore it
+ def handle_expt(self):
+ pass
+ smtpd.SMTPChannel.handle_expt = handle_expt
+
+
def server(evt, buf, serv):
serv.listen(5)
evt.set()