Re: [Python-Dev] IMAP/POP3 servers on python.org?
[moving discussion to python-dev from pydotorg] On Fri, Mar 06, 2009, Bill Janssen wrote:
Michael Foord <michael@voidspace.org.uk> wrote:
Bill Janssen wrote:
Steve Holden <steve@holdenweb.com> wrote:
Seems to me it might be better to have a test start a local server then kill it, but I am presuming you have some good reason why this is not practical?
It seems a steep learning curve just to run the Python test suite, to have to know how to install an IMAP server on your machine. But perhaps you're right.
Does it need to test against a real server - can't some of the lower calls be mocked out?
Not really. These *are* the lower-level calls.
One thing I haven't seen addressed in this discussion is why it's undesirable to ship Twisted as part of the testing source tree. Yes, I realize that it could create an "attractive nuisance", but I think the gains in simplifying testing outweigh that. -- Aahz (aahz@pythoncraft.com) <*> http://www.pythoncraft.com/ "All problems in computer science can be solved by another level of indirection." --Butler Lampson
Aahz <aahz <at> pythoncraft.com> writes:
One thing I haven't seen addressed in this discussion is why it's undesirable to ship Twisted as part of the testing source tree.
Because Twisted is huge and it's not reasonable to include it just for testing purposes? (besides, launching a twisted server implies running a reactor and I'm not sure the reactors support being started and stopped several times yet)
participants (2)
-
Aahz
-
Antoine Pitrou