Skip to content

Commit

Permalink
specify only v4
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert committed Oct 13, 2024
1 parent 9b46a18 commit 222c6cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_sockets.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,10 +329,11 @@ async def test_happy_eyeballs_refcycles(self) -> None:
"""
Test derived from https://github.com/python/cpython/pull/124859
"""
port = ephemeral_port_reserve.reserve()
ip = "127.0.0.1"
port = ephemeral_port_reserve.reserve(ip=ip)
exc = None
try:
async with await connect_tcp("localhost", port):
async with await connect_tcp(ip, port):
pass
except OSError as e:
exc = e.__cause__
Expand Down

0 comments on commit 222c6cd

Please sign in to comment.