]> granicus.if.org Git - python/commit
Let the O/S supply a port if none of the default ports can be used.
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 14 Oct 2007 00:18:40 +0000 (00:18 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 14 Oct 2007 00:18:40 +0000 (00:18 +0000)
commit880605aafdb60977c0d441c2472a3ee1dbfbd2d3
treef87755fe29876465fafe8d760bfafb6e2cadcaad
parent5d743fd187f59ef792373e026f0de4ada63a3387
Let the O/S supply a port if none of the default ports can be used.
This should make the tests more robust at the expense of allowing
tests to be sloppier by not requiring them to cleanup after themselves.
(It will legitamitely help when running two test suites simultaneously
or if another process is already using one of the predefined ports.)

Also simplifies (slightLy) the exception handling elsewhere.
Lib/test/test_support.py