We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db6b99e commit 56070dbCopy full SHA for 56070db
graalpython/lib-python/3/test/support/__init__.py
@@ -783,10 +783,9 @@ def bind_port(sock, host=HOST):
783
if hasattr(socket, 'SO_EXCLUSIVEADDRUSE'):
784
sock.setsockopt(socket.SOL_SOCKET, socket.SO_EXCLUSIVEADDRUSE, 1)
785
786
- # XXX GraalVM change: bind to a specific port
787
- # Our bind with port 0 doesn't know the real port until listen() is called
788
- # sock.bind((host, 0))
789
- sock.bind((host, 8756))
+ sock.bind((host, 0))
+ # XXX GraalVM change: our bind with port 0 doesn't know the real port until listen() is called
+ sock.listen()
790
port = sock.getsockname()[1]
791
return port
792
0 commit comments