From: Victor Stinner Date: Thu, 22 Sep 2011 23:29:44 +0000 (+0200) Subject: Issue #12931: Add a test with Unicode URI to test_xmlrpc X-Git-Tag: v3.3.0a1~1503^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=da6eb5305fabdf4a4dd48c010724bcdf962d1612;p=python Issue #12931: Add a test with Unicode URI to test_xmlrpc --- diff --git a/Lib/test/test_xmlrpc.py b/Lib/test/test_xmlrpc.py index 102f892d47..04e762ad74 100644 --- a/Lib/test/test_xmlrpc.py +++ b/Lib/test/test_xmlrpc.py @@ -584,6 +584,10 @@ class SimpleServerTestCase(BaseServerTestCase): # This avoids waiting for the socket timeout. self.test_simple1() + def test_unicode_host(self): + server = xmlrpclib.ServerProxy("http://%s:%d/RPC2" % (ADDR, PORT)) + self.assertEqual(server.add("a", "\xe9"), "a\xe9") + class MultiPathServerTestCase(BaseServerTestCase): threadFunc = staticmethod(http_multi_server) request_count = 2