[Python-checkins] cpython (merge 3.5 -> default): Issue #27136: Merge test_asyncio fix from 3.5

martin.panter python-checkins at python.org
Mon Jun 13 20:03:04 EDT 2016


https://hg.python.org/cpython/rev/f31b6c3e41f7
changeset:   101984:f31b6c3e41f7
parent:      101982:9c9ed326d981
parent:      101983:e032ffd5ae84
user:        Martin Panter <vadmium+py at gmail.com>
date:        Mon Jun 13 23:51:02 2016 +0000
summary:
  Issue #27136: Merge test_asyncio fix from 3.5

files:
  Lib/test/test_asyncio/test_base_events.py |  8 ++++----
  1 files changed, 4 insertions(+), 4 deletions(-)


diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py
--- a/Lib/test/test_asyncio/test_base_events.py
+++ b/Lib/test/test_asyncio/test_base_events.py
@@ -1185,14 +1185,14 @@
             test_utils.run_briefly(self.loop)  # allow transport to close
 
         sock.family = socket.AF_INET6
-        coro = self.loop.create_connection(asyncio.Protocol, '::2', 80)
+        coro = self.loop.create_connection(asyncio.Protocol, '::1', 80)
         t, p = self.loop.run_until_complete(coro)
         try:
-            # Without inet_pton we use getaddrinfo, which transforms ('::2', 80)
-            # to ('::0.0.0.2', 80, 0, 0). The last 0s are flow info, scope id.
+            # Without inet_pton we use getaddrinfo, which transforms ('::1', 80)
+            # to ('::1', 80, 0, 0). The last 0s are flow info, scope id.
             [address] = sock.connect.call_args[0]
             host, port = address[:2]
-            self.assertRegex(host, r'::(0\.)*2')
+            self.assertRegex(host, r'::(0\.)*1')
             self.assertEqual(port, 80)
             _, kwargs = m_socket.socket.call_args
             self.assertEqual(kwargs['family'], m_socket.AF_INET6)

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list