summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-09-22 23:31:04 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-09-22 23:31:04 (GMT)
commit92c144ee72d4ab488ec0a9d50cb78dc739c68069 (patch)
tree5d5525db4f703f868ed7972874b609210131c3e2
parent9089b7956b658c6fbdeb29826e73b096d7f219f5 (diff)
parentda6eb5305fabdf4a4dd48c010724bcdf962d1612 (diff)
downloadcpython-92c144ee72d4ab488ec0a9d50cb78dc739c68069.zip
cpython-92c144ee72d4ab488ec0a9d50cb78dc739c68069.tar.gz
cpython-92c144ee72d4ab488ec0a9d50cb78dc739c68069.tar.bz2
Merge 3.2: Issue #12931: Add a test with Unicode URI to test_xmlrpc
-rw-r--r--Lib/test/test_xmlrpc.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_xmlrpc.py b/Lib/test/test_xmlrpc.py
index 102f892..04e762a 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