Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switching from get_unused_port to bind_unused_port in ClientTextMixin class. #676

Closed
wants to merge 1 commit into from

Conversation

jpittman
Copy link

@jpittman jpittman commented Feb 5, 2013

bind_unused_port guarantees that it will find an unused port for testing purposes. get_unused_port was causing tests to fail due to a port already being in use on a development machine (in this case, a mac running osx 10.8).

… class.

bind_unused_port guarantees that it will find an unused port for testing purposes.  get_unused_port was causing tests to fail due to a port already being in use on a development machine (in this case, a mac running osx 10.8).
@bdarnell bdarnell closed this in 172e095 Feb 6, 2013
@bdarnell
Copy link
Member

bdarnell commented Feb 6, 2013

Whoops, I thought I had fixed all of those. Anyway, as the CI build shows, you need to actually use the socket returned by bind_unused_port, since it won't be available if you just try to bind it again. I'll make a separate commit with the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants