From: Neal Norwitz Date: Mon, 14 Apr 2003 01:18:32 +0000 (+0000) Subject: Get test working if gzip support is not available X-Git-Tag: v2.3c1~1203 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ae323198e577c1d0a8a5ac16f181f290d7b1013e;p=thirdparty%2FPython%2Fcpython.git Get test working if gzip support is not available --- diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py index bd80258a69ed..584b7b313af0 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