Skip to content

Commit 4b816e6

Browse files
committed
asyncio: _ipaddr_info was extended
1 parent bb94301 commit 4b816e6

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tests/python/test_base_events.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,17 @@ def test_ipaddr_info(self):
100100
# IPv4 address with family IPv6.
101101
self.assertIsNone(base_events._ipaddr_info('1.2.3.4', 1, INET6, STREAM, TCP))
102102

103+
if sys.version_info >= (3, 7):
104+
RTuple = (0,0)
105+
else:
106+
RTuple = ()
103107
self.assertEqual(
104-
(INET6, STREAM, TCP, '', ('::3', 1)),
108+
(INET6, STREAM, TCP, '', ('::3', 1)+RTuple),
105109
base_events._ipaddr_info('::3', 1, INET6, STREAM, TCP)
106110
)
107111

108112
self.assertEqual(
109-
(INET6, STREAM, TCP, '', ('::3', 1)),
113+
(INET6, STREAM, TCP, '', ('::3', 1)+RTuple),
110114
base_events._ipaddr_info('::3', 1, UNSPEC, STREAM, TCP)
111115
)
112116

0 commit comments

Comments
 (0)