Get test working if gzip support is not available

This commit is contained in:
Neal Norwitz 2003-04-14 01:18:32 +00:00
parent 874e1f7ed3
commit ae323198e5

View file

@ -10,7 +10,8 @@ from test import test_support
# Check for our compression modules.
try:
import gzip
except ImportError:
gzip.GzipFile
except (ImportError, AttributeError):
gzip = None
try:
import bz2