Message104952
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... |
|
Date |
User |
Action |
Args |
2010-05-04 16:03:12 | paul.moore | set | recipients:
+ paul.moore, vinay.sajip, exarkun, pitrou, giampaolo.rodola, tim.golden, trent, r.david.murray, brian.curtin |
2010-05-04 16:03:12 | paul.moore | set | messageid: <1272988992.29.0.0457285436132.issue8576@psf.upfronthosting.co.za> |
2010-05-04 16:03:11 | paul.moore | link | issue8576 messages |
2010-05-04 16:03:10 | paul.moore | create | |
|