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')

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')

Fix gzip test for Python 2.6
Fix gzip test for Python 2.6

  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')
  
Fix gzip test for Python 2.6
## Code Before:
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')

## Instruction:
Fix gzip test for Python 2.6
## Code After:
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')
