summaryrefslogtreecommitdiff
path: root/Lib/test/test_xmlrpc.py
diff options
context:
space:
mode:
authorKristján Valur Jónsson <kristjan@ccpgames.com>2009-07-19 22:14:00 +0000
committerKristján Valur Jónsson <kristjan@ccpgames.com>2009-07-19 22:14:00 +0000
commit6d755900f6735a6c66b5e8455a0127ac99caf2a6 (patch)
tree099c42b9a6ec4f405797ca5b4114564aefa642f6 /Lib/test/test_xmlrpc.py
parentd7b0eebcaea618c982eff7ed92054292b9281d1f (diff)
downloadcpython-git-6d755900f6735a6c66b5e8455a0127ac99caf2a6.tar.gz
http://bugs.python.org/issue6499
zlib/gzip may not be present for all builds. Make xmlrpclib gracefully not supporg gzip encoding in this case
Diffstat (limited to 'Lib/test/test_xmlrpc.py')
-rw-r--r--Lib/test/test_xmlrpc.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/test_xmlrpc.py b/Lib/test/test_xmlrpc.py
index f5749c6c29..abd905a8ad 100644
--- a/Lib/test/test_xmlrpc.py
+++ b/Lib/test/test_xmlrpc.py
@@ -918,7 +918,11 @@ def test_main():
xmlrpc_tests.append(SimpleServerTestCase)
xmlrpc_tests.append(KeepaliveServerTestCase1)
xmlrpc_tests.append(KeepaliveServerTestCase2)
- xmlrpc_tests.append(GzipServerTestCase)
+ try:
+ import gzip
+ xmlrpc_tests.append(GzipServerTestCase)
+ except ImportError:
+ pass #gzip not supported in this build
xmlrpc_tests.append(ServerProxyTestCase)
xmlrpc_tests.append(FailingServerTestCase)
xmlrpc_tests.append(CGIHandlerTestCase)