summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2003-04-14 01:18:32 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2003-04-14 01:18:32 (GMT)
commitae323198e577c1d0a8a5ac16f181f290d7b1013e (patch)
tree198501c1c654b6dc82a9845865687aa649ef684f /Lib
parent874e1f7ed3911b3290d095891082041b122e7030 (diff)
downloadcpython-ae323198e577c1d0a8a5ac16f181f290d7b1013e.zip
cpython-ae323198e577c1d0a8a5ac16f181f290d7b1013e.tar.gz
cpython-ae323198e577c1d0a8a5ac16f181f290d7b1013e.tar.bz2
Get test working if gzip support is not available
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_tarfile.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py
index bd80258..584b7b3 100644
--- a/Lib/test/test_tarfile.py
+++ b/Lib/test/test_tarfile.py
@@ -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