about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2025-05-29 16:11:33 +0900
committerNguyễn Gia Phong <cnx@loang.net>2025-05-29 16:11:33 +0900
commit8b74458af764a890205b61e657a32bc120dc66b9 (patch)
tree7e642e1d26884b87bc4b20d45517c1e4a4f7f1a5
parent86f7051feee1473a30df564bc0634f5bfa4bba4c (diff)
downloadscadere-8b74458af764a890205b61e657a32bc120dc66b9.tar.gz
Fix tests on IPv6
-rw-r--r--tst/test_listen.py2
1 files changed, 1 insertions, 1 deletions
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: