[New-bugs-announce] [issue12054] test_socket: replace custom _get_unused_port() by support.find_unused_port()

Charles-François Natali report at bugs.python.org
Tue May 10 22:33:03 CEST 2011


New submission from Charles-François Natali <neologix at free.fr>:

Lib/test/test_socket.py uses custom _get_unused_port to return a port which will be likely available for binding in some tests.
The same functionality is already provided by support.find_unuse_port, let's make use of it.
Patch attached.

----------
components: Tests
files: test_socket_unused_port.diff
keywords: patch
messages: 135738
nosy: neologix
priority: low
severity: normal
status: open
title: test_socket: replace custom _get_unused_port() by support.find_unused_port()
type: feature request
Added file: http://bugs.python.org/file21958/test_socket_unused_port.diff

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


More information about the New-bugs-announce mailing list