diff options
author | Nguyễn Gia Phong <cnx@loang.net> | 2025-05-29 16:11:33 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <cnx@loang.net> | 2025-05-29 16:11:33 +0900 |
commit | 8b74458af764a890205b61e657a32bc120dc66b9 (patch) | |
tree | 7e642e1d26884b87bc4b20d45517c1e4a4f7f1a5 | |
parent | 86f7051feee1473a30df564bc0634f5bfa4bba4c (diff) | |
download | scadere-8b74458af764a890205b61e657a32bc120dc66b9.tar.gz |
Fix tests on IPv6
-rw-r--r-- | tst/test_listen.py | 2 |
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: |