Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(15)

Unified Diff: Lib/test/test_xmlrpc.py

Issue 26147: Encoding errors in xmlrpc
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Lib/xmlrpclib.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_xmlrpc.py Mon Jan 18 19:38:53 2016 +0200
+++ b/Lib/test/test_xmlrpc.py Mon Jan 18 20:21:19 2016 +0200
@@ -149,7 +149,7 @@ class XMLRPCTestCase(unittest.TestCase):
@test_support.requires_unicode
def test_dump_encoding(self):
- value = unichr(0x20ac)
+ value = unichr(0x20ac) + unichr(0xa4)
strg = xmlrpclib.dumps((value,), encoding='iso-8859-15')
strg = "<?xml version='1.0' encoding='iso-8859-15'?>" + strg
self.assertEqual(xmlrpclib.loads(strg)[0][0], value)
@@ -496,7 +496,7 @@ class SimpleServerTestCase(BaseServerTes
@test_support.requires_unicode
def test_client_encoding(self):
start_string = unichr(0x20ac)
- end_string = unichr(0xa3)
+ end_string = unichr(0xa4)
try:
p = xmlrpclib.ServerProxy(URL, encoding='iso-8859-15')
@@ -635,7 +635,7 @@ class SimpleServerEncodingTestCase(BaseS
@test_support.requires_unicode
def test_server_encoding(self):
start_string = unichr(0x20ac)
- end_string = unichr(0xa3)
+ end_string = unichr(0xa4)
try:
p = xmlrpclib.ServerProxy(URL)
« no previous file with comments | « no previous file | Lib/xmlrpclib.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+