Skip to content

Commit 25a76b2

Browse files
committed
tests/dns: Add a test for '::1' ipv6 address
1 parent 67ab05d commit 25a76b2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_dns.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ def test_getaddrinfo_18(self):
126126
self._test_getaddrinfo('localhost', b'http')
127127
self._test_getaddrinfo('localhost', b'http', type=socket.SOCK_STREAM)
128128

129+
def test_getaddrinfo_19(self):
130+
self._test_getaddrinfo('::1', 80)
131+
self._test_getaddrinfo('::1', 80, type=socket.SOCK_STREAM)
132+
129133
######
130134

131135
def test_getnameinfo_1(self):

0 commit comments

Comments
 (0)