old_contents: import io
  import os
  
  from ...tests.helper import pytest
  from .. import gzip
  
  def test_gzip(tmpdir):
      fd = gzip.GzipFile(str(tmpdir.join("test.gz")), 'wb')
      fd = io.TextIOWrapper(fd, encoding='utf8')
  
new_contents: import io
  import os
  
  from ...tests.helper import pytest
  from .. import gzip
  
  pytestmark = pytest.mark.skipif("sys.version_info < (3,0)")
  
  def test_gzip(tmpdir):
      fd = gzip.GzipFile(str(tmpdir.join("test.gz")), 'wb')
      fd = io.TextIOWrapper(fd, encoding='utf8')
  
subject: Fix gzip test for Python 2.6