mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
zlib/gzip may not be present for all builds. Make xmlrpclib gracefully not supporg gzip encoding in this case
This commit is contained in:
parent
d7b0eebcae
commit
6d755900f6
3 changed files with 25 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue