diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2003-04-14 01:18:32 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2003-04-14 01:18:32 (GMT) |
commit | ae323198e577c1d0a8a5ac16f181f290d7b1013e (patch) | |
tree | 198501c1c654b6dc82a9845865687aa649ef684f | |
parent | 874e1f7ed3911b3290d095891082041b122e7030 (diff) | |
download | cpython-ae323198e577c1d0a8a5ac16f181f290d7b1013e.zip cpython-ae323198e577c1d0a8a5ac16f181f290d7b1013e.tar.gz cpython-ae323198e577c1d0a8a5ac16f181f290d7b1013e.tar.bz2 |
Get test working if gzip support is not available
-rw-r--r-- | Lib/test/test_tarfile.py | 3 |
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 |