mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
Explicitly pass socket type and family for getaddrinfo,
to make test work on Solaris. Disable gethostbyaddr IDNA test for now as there is no reverse DNS entry for the IPv6 address of the test name.
This commit is contained in:
parent
ee6d64773b
commit
67e91ad9cf
1 changed files with 4 additions and 2 deletions
|
|
@ -641,8 +641,10 @@ def test_idna(self):
|
|||
# these should all be successful
|
||||
socket.gethostbyname('испытание.python.org')
|
||||
socket.gethostbyname_ex('испытание.python.org')
|
||||
socket.getaddrinfo('испытание.python.org',0)
|
||||
socket.gethostbyaddr('испытание.python.org')
|
||||
socket.getaddrinfo('испытание.python.org',0,socket.AF_UNSPEC,socket.SOCK_STREAM)
|
||||
# this may not work if the forward lookup choses the IPv6 address, as that doesn't
|
||||
# have a reverse entry yet
|
||||
# socket.gethostbyaddr('испытание.python.org')
|
||||
|
||||
@unittest.skipUnless(thread, 'Threading required for this test.')
|
||||
class BasicTCPTest(SocketConnectedTest):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue