summaryrefslogtreecommitdiffstats
path: root/Lib/packaging/tests/pypi_server.py
diff options
context:
space:
mode:
authorTarek Ziade <tarek@ziade.org>2011-05-22 21:25:48 (GMT)
committerTarek Ziade <tarek@ziade.org>2011-05-22 21:25:48 (GMT)
commita3c1545a2e6ff890b014a405e2511581b557772e (patch)
tree23e0a5181a9140b5a18ebe53cf97574c217764bc /Lib/packaging/tests/pypi_server.py
parent3517369894fa03ebd42e2ee50643dc072eea770f (diff)
downloadcpython-a3c1545a2e6ff890b014a405e2511581b557772e.zip
cpython-a3c1545a2e6ff890b014a405e2511581b557772e.tar.gz
cpython-a3c1545a2e6ff890b014a405e2511581b557772e.tar.bz2
not using a server name anymore as the 127.0.0.1 <> localhost symmetry is not true under Windows 7
Diffstat (limited to 'Lib/packaging/tests/pypi_server.py')
-rw-r--r--Lib/packaging/tests/pypi_server.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/packaging/tests/pypi_server.py b/Lib/packaging/tests/pypi_server.py
index 372a54c..cdff07c 100644
--- a/Lib/packaging/tests/pypi_server.py
+++ b/Lib/packaging/tests/pypi_server.py
@@ -32,7 +32,6 @@ implementations (static HTTP and XMLRPC over HTTP).
import os
import queue
import select
-import socket
import threading
import socketserver
from functools import wraps
@@ -135,7 +134,7 @@ class PyPIServer(threading.Thread):
self.server.register_introspection_functions()
self.server.register_instance(self.xmlrpc)
- self.address = (self.server.server_name, self.server.server_port)
+ self.address = ('127.0.0.1', self.server.server_port)
# to not have unwanted outputs.
self.server.RequestHandlerClass.log_request = lambda *_: None
@@ -270,7 +269,6 @@ class PyPIXMLRPCServer(SimpleXMLRPCServer):
"""Override server_bind to store the server name."""
socketserver.TCPServer.server_bind(self)
host, port = self.socket.getsockname()[:2]
- self.server_name = socket.getfqdn(host)
self.server_port = port