This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author paul.moore
Recipients brian.curtin, exarkun, giampaolo.rodola, paul.moore, pitrou, r.david.murray, tim.golden, trent, vinay.sajip
Date 2010-05-04.16:03:10
SpamBayes Score 0.011072888
Marked as misclassified No
Message-id <1272988992.29.0.0457285436132.issue8576@psf.upfronthosting.co.za>
In-reply-to
Content
One of the tests in test_socket is checking that an attempt to connect to a port with no server running gives socket.error. For that, we need a port that's guaranteed to have no server present.

I think that one of the tests in test_httplib checks the source_address attribute to make sure the port it contains is the one you connected on - again, you need a specific port and it can't be in use. (Sorry, I'm not precise on the details of this one as it's only in trunk and I'm not at a PC with a trunk checkout at the moment).

Arguably these tests are of limited value and could simply be deleted, but they are there, and I don't see a way of implementing them without using something that gives you an unused port number...
History
Date User Action Args
2010-05-04 16:03:12paul.mooresetrecipients: + paul.moore, vinay.sajip, exarkun, pitrou, giampaolo.rodola, tim.golden, trent, r.david.murray, brian.curtin
2010-05-04 16:03:12paul.mooresetmessageid: <1272988992.29.0.0457285436132.issue8576@psf.upfronthosting.co.za>
2010-05-04 16:03:11paul.moorelinkissue8576 messages
2010-05-04 16:03:10paul.moorecreate