]> granicus.if.org Git - python/commit
Allow the OS to select a free port for each test server. For
authorFacundo Batista <facundobatista@gmail.com>
Wed, 1 Aug 2007 23:18:36 +0000 (23:18 +0000)
committerFacundo Batista <facundobatista@gmail.com>
Wed, 1 Aug 2007 23:18:36 +0000 (23:18 +0000)
commit412b8b654cda5aa8abd038ac9cdcb19a0722c563
treedf84f9790292f69f6be68e7b642ebf29cc42c970
parent76760b0e8fe162b9a1c99d1dc8e17de68139d26f
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]
Lib/test/test_smtplib.py