Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit da6eb53

Browse files
author
Victor Stinner
committed
Issue #12931: Add a test with Unicode URI to test_xmlrpc
1 parent a49ed76 commit da6eb53

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Lib/test/test_xmlrpc.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,10 @@ def test_dotted_attribute(self):
584584
# This avoids waiting for the socket timeout.
585585
self.test_simple1()
586586

587+
def test_unicode_host(self):
588+
server = xmlrpclib.ServerProxy("http://%s:%d/RPC2" % (ADDR, PORT))
589+
self.assertEqual(server.add("a", "\xe9"), "a\xe9")
590+
587591
class MultiPathServerTestCase(BaseServerTestCase):
588592
threadFunc = staticmethod(http_multi_server)
589593
request_count = 2

0 commit comments

Comments
 (0)