[Python-checkins] cpython (merge 3.2 -> default): Merge 3.2: Issue #12931: Add a test with Unicode URI to test_xmlrpc

victor.stinner python-checkins at python.org
Fri Sep 23 01:31:11 CEST 2011


http://hg.python.org/cpython/rev/3b46f2e2d280
changeset: 72452:3b46f2e2d280
parent: 72449:a06ef7ab7321
parent: 72451:5ceab07bcd02
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Fri Sep 23 01:31:04 2011 +0200
summary:
 Merge 3.2: Issue #12931: Add a test with Unicode URI to test_xmlrpc
files:
 Lib/test/test_xmlrpc.py | 4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_xmlrpc.py b/Lib/test/test_xmlrpc.py
--- a/Lib/test/test_xmlrpc.py
+++ b/Lib/test/test_xmlrpc.py
@@ -584,6 +584,10 @@
 # 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
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /