Richard Jones richardjo...@optushome.com.au added the comment:
Merged mock socket from test_smtpd.py and committed.
--
resolution: - accepted
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2423
Richard Jones richardjo...@optushome.com.au added the comment:
The patch to test_smtplib.py no longer applies since trunk is now py3k. I'm
looking into it - and seeing whether the mock socket work I implemented for
test_smtpd.py will have any common code. I'm hitting some fun areas of
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +richard
stage: - commit review
versions: -Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2423
___
Daniel Diniz aja...@gmail.com added the comment:
What platform is that? I'm sure I don't get such a long runtime for
test_smtplib on Linux. Maybe this was fixed by changes in socket or
smtplib itself?
--
nosy: +ajaksu2
versions: +Python 2.7, Python 3.2 -Python 2.6
New submission from Jerry Seutter [EMAIL PROTECTED]:
Changes only affect test files.
test_smtplib.py before: 39.7s
test_smtplib.py after: 0.8s
socket.getfqdn() calls were causing all the slowness. Added a
mock_socket.py file to handle some tests. For other tests that tested
both server side
Changes by Jerry Seutter [EMAIL PROTECTED]:
Added file: http://bugs.python.org/file9767/mock_socket.py
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2423
__
___