On Apr 23, 6:11 pm, Marek Szuba <mare...@gmail.com> wrote:
> caused by the firewall (even though I had added python.exe to
> exceptions for localhost)
I think the problem might be that 'localhost' does not get resolved
to '127.0.0.1', not sure why not, in the past it used to work (must
be a new windows update that did this)
I got the same failures as you do, but after changing localhost to
127.0.0.1 the tests pass.
see below:
diff --git a/tests/pygrdata_test.py b/tests/pygrdata_test.py
index d70f63d..eab61b2 100644
--- a/tests/pygrdata_test.py
+++ b/tests/pygrdata_test.py
@@ -333,7 +333,7 @@ class XMLRPC_Test(TestBase):
def test_xmlrpc(self):
"Test XMLRPC"
pygr.Data.clear_cache() # force all requests to reload
- pygr.Data.update("http://localhost:%s" % self.server.port)
+ pygr.Data.update("http://127.0.0.1:%s" % self.server.port)
check_match(self)
check_dir(self)
diff --git a/tests/testlib/pygrdata_server.py b/tests/testlib/
pygrdata_server.py
index 21407dd..1507b5a 100644
--- a/tests/testlib/pygrdata_server.py
+++ b/tests/testlib/pygrdata_server.py
@@ -46,7 +46,7 @@ options.downloadDB = options.downloadDB or None
xmlrpc = metabase.ResourceServer(mdb, 'testy',
withIndex=True,
downloadDB=options.downloadDB,
- host='localhost', port=options.port)
+ host='127.0.0.1', port=options.port)
# main loop
def serve_forever(self):
diff --git a/tests/testlib/testutil.py b/tests/testlib/testutil.py
index b2729a0..a98b1d9 100644
--- a/tests/testlib/testutil.py
+++ b/tests/testlib/testutil.py
@@ -220,7 +220,7 @@ class TestXMLRPCServer(object):
def close(self):
import xmlrpclib
- s = xmlrpclib.ServerProxy('http://localhost:%d' % self.port)
+ s = xmlrpclib.ServerProxy('http://127.0.0.1:%d' % self.port)
s.exit_now() # TELL THE SERVER TO EXIT
def make_suite(tests):
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pygr-dev" group.
To post to this group, send email to pygr-dev@googlegroups.com
To unsubscribe from this group, send email to
pygr-dev+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/pygr-dev?hl=en
-~----------~----~----~----~------~----~------~--~---