mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Get test working if gzip support is not available
This commit is contained in:
parent
874e1f7ed3
commit
ae323198e5
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue