commit | 412b8b654cda5aa8abd038ac9cdcb19a0722c563 | [log] [tgz] |
---|---|---|
author | Facundo Batista <facundobatista@gmail.com> | Wed Aug 01 23:18:36 2007 +0000 |
committer | Facundo Batista <facundobatista@gmail.com> | Wed Aug 01 23:18:36 2007 +0000 |
tree | df84f9790292f69f6be68e7b642ebf29cc42c970 | |
parent | 76760b0e8fe162b9a1c99d1dc8e17de68139d26f [diff] |
Allow the OS to select a free port for each test server. For DebuggingServerTests, construct SMTP objects with a localhost argument to avoid abysmally long FQDN lookups (not relevant to items under test) on some machines that would cause the test to fail. Moved server setup code in the server function inside the try block to avoid the possibility of setup failure hanging the test. Minor edits to conform to PEP 8. [GSoC - Alan McIntyre]