facebook/tornado — pull request #676 by jpittman (2013-02-05 17:56:39+00:00)
Title: Switching from get_unused_port to bind_unused_port in ClientTextMixin 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).