diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-02-20 17:01:11 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-02-20 17:01:11 +0100 |
commit | 6dcfec985915036e7bda23ca5d227802645c83dd (patch) | |
tree | 149a8057268048c3508b8c3ebd22bc664bbea8f4 | |
parent | d1a727a9e5440cdca283719db8fd71c8cb908b35 (diff) | |
download | cpython-git-6dcfec985915036e7bda23ca5d227802645c83dd.tar.gz |
asyncio: ops, and now fix also the unit test for IPv6 address:
test_sock_connect_address()
-rw-r--r-- | Lib/test/test_asyncio/test_events.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py index 3720cc7560..f8499dc1f0 100644 --- a/Lib/test/test_asyncio/test_events.py +++ b/Lib/test/test_asyncio/test_events.py @@ -1335,12 +1335,11 @@ class EventLoopTestsMixin: 'selector': self.loop._selector.__class__.__name__}) def test_sock_connect_address(self): - families = [socket.AF_INET] + families = [(socket.AF_INET, ('www.python.org', 80))] if support.IPV6_ENABLED: - families.append(socket.AF_INET6) + families.append((socket.AF_INET6, ('www.python.org', 80, 0, 0))) - address = ('www.python.org', 80) - for family in families: + for family, address in families: for sock_type in (socket.SOCK_STREAM, socket.SOCK_DGRAM): sock = socket.socket(family, sock_type) with sock: |