Merge 3.2: Issue #12931: Add a test with Unicode URI to test_xmlrpc

This commit is contained in:
Victor Stinner 2011-09-23 01:31:04 +02:00
commit 92c144ee72
1 changed files with 4 additions and 0 deletions

View 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