#6026 - fix tests that failed without zlib
diff --git a/Lib/test/test_gzip.py b/Lib/test/test_gzip.py
index 8ae31b2..13b0e57 100644
--- a/Lib/test/test_gzip.py
+++ b/Lib/test/test_gzip.py
@@ -5,9 +5,8 @@
 import unittest
 from test import test_support
 import os
-import gzip
 import struct
-
+gzip = test_support.import_module('gzip')
 
 data1 = """  int length=DEFAULTALLOC, err = Z_OK;
   PyObject *RetVal;