]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Get test working if gzip support is not available
authorNeal Norwitz <nnorwitz@gmail.com>
Mon, 14 Apr 2003 01:18:32 +0000 (01:18 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Mon, 14 Apr 2003 01:18:32 +0000 (01:18 +0000)
Lib/test/test_tarfile.py

index bd80258a69edf131c09d534e312aa3b8f3f04615..584b7b313af0a8b1a62d2638dd2e68c96e2aafa9 100644 (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