diff options
| author | Robert Brewer <fumanchu@aminus.org> | 2008-11-08 23:30:21 +0000 |
|---|---|---|
| committer | Robert Brewer <fumanchu@aminus.org> | 2008-11-08 23:30:21 +0000 |
| commit | 4cba9acfc2af2ec487d36452060c651c4472a4e9 (patch) | |
| tree | d7450ac7b684b0b94ec06d9ec5d976cd1b4954f6 /cherrypy/test/test_xmlrpc.py | |
| parent | 7d39e1464b57ff28a8e87312079c38e5c71db2ab (diff) | |
| download | cherrypy-git-cherrypy-3.1.1.tar.gz | |
Merge from trunk for today's fixes [2072] to [2080].cherrypy-3.1.1
--HG--
branch : cherrypy-3.1.x
Diffstat (limited to 'cherrypy/test/test_xmlrpc.py')
| -rw-r--r-- | cherrypy/test/test_xmlrpc.py | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/cherrypy/test/test_xmlrpc.py b/cherrypy/test/test_xmlrpc.py index 08ebfa3a..5b50d40c 100644 --- a/cherrypy/test/test_xmlrpc.py +++ b/cherrypy/test/test_xmlrpc.py @@ -116,19 +116,11 @@ class XmlRpcTest(helper.CPWebCase): except AttributeError: pass - host = self.HOST - if host == '0.0.0.0': - # INADDR_ANY, which should respond on localhost. - host = "127.0.0.1" - if host == '::': - # IN6ADDR_ANY, which should respond on localhost. - host = "::1" - if scheme == "https": - url = 'https://%s:%s/xmlrpc/' % (host, self.PORT) + url = 'https://%s:%s/xmlrpc/' % (self.interface(), self.PORT) proxy = xmlrpclib.ServerProxy(url, transport=HTTPSTransport()) else: - url = 'http://%s:%s/xmlrpc/' % (host, self.PORT) + url = 'http://%s:%s/xmlrpc/' % (self.interface(), self.PORT) proxy = xmlrpclib.ServerProxy(url) # begin the tests ... |
