man-group / pkglib

Company-centric Python packaging and testing library
39 stars 22 forks source link

Get free port with test that the port is not in use. #16

Closed oisinmulvihill closed 11 years ago

oisinmulvihill commented 11 years ago

Hi Ed,

I've found the random port process currently being used was not working reliably on my home desktop. I didn't have a problem on my laptop strangely. I've solved this elsewhere in the evasion-common get_free_port() which I've adapted and would like to contribute here.

Original get_free_port()

All the best,

Oisin