Index: Lib/xmlrpclib.py =================================================================== --- Lib/xmlrpclib.py (révision 75274) +++ Lib/xmlrpclib.py (copie de travail) @@ -1534,6 +1534,8 @@ allow_none=0, use_datetime=0): # establish a "logical" server connection + uri = str(uri) + # get the url import urllib type, uri = urllib.splittype(uri) Index: Lib/test/test_xmlrpc.py =================================================================== --- Lib/test/test_xmlrpc.py (révision 75274) +++ Lib/test/test_xmlrpc.py (copie de travail) @@ -466,6 +466,9 @@ # protocol error; provide additional information in test output self.fail("%s\n%s" % (e, getattr(e, "headers", ""))) + def test_unicode_host(self): + server = xmlrpclib.ServerProxy(u"http://%s:%d/RPC2"%(ADDR, PORT)) + self.assertEqual(server.add("a", u"\xe9"), u"a\xe9") # [ch] The test 404 is causing lots of false alarms. def XXXtest_404(self):