summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_xmlrpc.py
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2011-10-30 19:19:32 (GMT)
committerFlorent Xicluna <florent.xicluna@gmail.com>2011-10-30 19:19:32 (GMT)
commitc4fec937dcb70175fb0a0e772563a35ebba2d1c6 (patch)
tree6050520946ab47291ac2eccbe4d37b5b34130cce /Lib/test/test_xmlrpc.py
parent3fa29f7cd77970df2d85db3e7565cf0ad2548883 (diff)
downloadcpython-c4fec937dcb70175fb0a0e772563a35ebba2d1c6.zip
cpython-c4fec937dcb70175fb0a0e772563a35ebba2d1c6.tar.gz
cpython-c4fec937dcb70175fb0a0e772563a35ebba2d1c6.tar.bz2
Cleanup xmlrpc: remove obsolete comments, unused imports. Add test for bytes marshalling.
Diffstat (limited to 'Lib/test/test_xmlrpc.py')
-rw-r--r--Lib/test/test_xmlrpc.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_xmlrpc.py b/Lib/test/test_xmlrpc.py
index e7b048b..e97420b 100644
--- a/Lib/test/test_xmlrpc.py
+++ b/Lib/test/test_xmlrpc.py
@@ -140,6 +140,9 @@ class XMLRPCTestCase(unittest.TestCase):
('host.tld',
[('Authorization', 'Basic dXNlcg==')], {}))
+ def test_dump_bytes(self):
+ self.assertRaises(TypeError, xmlrpclib.dumps, (b"my dog has fleas",))
+
def test_ssl_presence(self):
try:
import ssl
@@ -177,7 +180,7 @@ class FaultTestCase(unittest.TestCase):
self.assertRaises(xmlrpclib.Fault, xmlrpclib.loads, s)
def test_dotted_attribute(self):
- # this will raise AttirebuteError because code don't want us to use
+ # this will raise AttributeError because code don't want us to use
# private methods
self.assertRaises(AttributeError,
xmlrpc.server.resolve_dotted_attribute, str, '__add')