Skip to content

Commit f984984

Browse files
authored
Update fixtures.py to use "127.0.0.1" for local ports (#2384)
1 parent 7e87a01 commit f984984

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/fixtures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
def get_open_port():
2727
sock = socket.socket()
28-
sock.bind(("", 0))
28+
sock.bind(("127.0.0.1", 0))
2929
port = sock.getsockname()[1]
3030
sock.close()
3131
return port

0 commit comments

Comments
 (0)