]> granicus.if.org Git - python/commitdiff
Issue #12931: Add a test with Unicode URI to test_xmlrpc
authorVictor Stinner <victor.stinner@haypocalc.com>
Thu, 22 Sep 2011 23:29:44 +0000 (01:29 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Thu, 22 Sep 2011 23:29:44 +0000 (01:29 +0200)
Lib/test/test_xmlrpc.py

index 102f892d47c4801cb6872bf0035b511be1482aad..04e762ad74261c8a4c4b3fc5ae5f43d9811d19e4 100644 (file)
@@ -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