From 8b74458af764a890205b61e657a32bc120dc66b9 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Thu, 29 May 2025 16:11:33 +0900 Subject: Fix tests on IPv6 --- tst/test_listen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tst/test_listen.py b/tst/test_listen.py index ea58cc9..6ef7645 100644 --- a/tst/test_listen.py +++ b/tst/test_listen.py @@ -162,7 +162,7 @@ def has_usual_path(url): @asynccontextmanager async def connect(socket): """Return a read-write stream for an asyncio TCP connection.""" - reader, writer = await open_connection(*socket.getsockname()) + reader, writer = await open_connection(*socket.getsockname()[:2]) try: yield reader, writer finally: -- cgit 1.4.1