summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_xmlrpc.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-09-22 23:29:44 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-09-22 23:29:44 (GMT)
commitda6eb5305fabdf4a4dd48c010724bcdf962d1612 (patch)
treeb9c0a7655b3e754a8e13d62e535fbf5237f8c210 /Lib/test/test_xmlrpc.py
parenta49ed7650a86a01ddc77486e335d31031ef6086c (diff)
downloadcpython-da6eb5305fabdf4a4dd48c010724bcdf962d1612.zip
cpython-da6eb5305fabdf4a4dd48c010724bcdf962d1612.tar.gz
cpython-da6eb5305fabdf4a4dd48c010724bcdf962d1612.tar.bz2
Issue #12931: Add a test with Unicode URI to test_xmlrpc
Diffstat (limited to 'Lib/test/test_xmlrpc.py')
-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