zlib/gzip may not be present for all builds.  Make xmlrpclib gracefully not supporg gzip encoding in this case
This commit is contained in:
Kristján Valur Jónsson 2009-07-19 22:14:00 +00:00
parent d7b0eebcae
commit 6d755900f6
3 changed files with 25 additions and 6 deletions

View file

@ -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)