A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-checkins/2014-November/133033.html below:

[Python-checkins] cpython (3.2): move idna test domain to pythontest.net

[Python-checkins] cpython (3.2): move idna test domain to pythontest.netbenjamin.peterson python-checkins at python.org
Mon Nov 3 21:13:36 CET 2014
https://hg.python.org/cpython/rev/c16e047965a2
changeset:   93371:c16e047965a2
branch:      3.2
parent:      92975:eac54f7a8018
user:        Benjamin Peterson <benjamin at python.org>
date:        Mon Nov 03 15:10:47 2014 -0500
summary:
  move idna test domain to pythontest.net

files:
  Lib/test/test_socket.py |  7 ++++---
  1 files changed, 4 insertions(+), 3 deletions(-)


diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -775,9 +775,10 @@
     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')

-- 
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4