[issue8576] test_support.find_unused_port can cause socket conflicts on Windows

Antoine Pitrou report at bugs.python.org
Sun May 2 23:42:15 CEST 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

> See, for example, the test for "source_address" parameter of
> socket.create_connection() function.

Instead of testing the port, you could test the host. For example
by using two different loopback addresses (127.0.0.1 and 127.0.0.2?). Would it work on every platform?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8576>
_______________________________________


More information about the Python-bugs-list mailing list