Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
863c962e
Commit
863c962e
authored
Nov 03, 2014
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move idna test domain to pythontest.net
parent
6f1abda0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Lib/test/test_socket.py
Lib/test/test_socket.py
+4
-3
No files found.
Lib/test/test_socket.py
View file @
863c962e
...
...
@@ -775,9 +775,10 @@ class GeneralModuleTests(unittest.TestCase):
def
test_idna
(
self
):
support
.
requires
(
'network'
)
# these should all be successful
socket
.
gethostbyname
(
'испытание.python.org'
)
socket
.
gethostbyname_ex
(
'испытание.python.org'
)
socket
.
getaddrinfo
(
'испытание.python.org'
,
0
,
socket
.
AF_UNSPEC
,
socket
.
SOCK_STREAM
)
domain
=
'испытание.pythontest.net'
socket
.
gethostbyname
(
domain
)
socket
.
gethostbyname_ex
(
domain
)
socket
.
getaddrinfo
(
domain
,
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')
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment