import subprocess


def test_subcommand():
    """
    Test that a command from the example project is registered.
    """
    output = subprocess.check_output(['textx'], stderr=subprocess.STDOUT)
    assert b'testcommand' in output


def test_subcommand_group():
    """
    Test that a command group is registered.
    """
    output = subprocess.check_output(['textx', 'testgroup'],
                                     stderr=subprocess.STDOUT)
    assert b'groupcommand1' in output
    assert b'groupcommand2' in output

import sys
import pytest
import subprocess


if (3, 6) <= sys.version_info < (3, 8):
    pytest.skip("Temporary workaround for Travis problems", allow_module_level=True)


def test_subcommand():
    """
    Test that a command from the example project is registered.
    """
    output = subprocess.check_output(['textx'], stderr=subprocess.STDOUT)
    assert b'testcommand' in output


def test_subcommand_group():
    """
    Test that a command group is registered.
    """
    output = subprocess.check_output(['textx', 'testgroup'],
                                     stderr=subprocess.STDOUT)
    assert b'groupcommand1' in output
    assert b'groupcommand2' in output

Add workaround for Travis CI problems
Add workaround for Travis CI problems

+ import sys
+ import pytest
  import subprocess
+ 
+ 
+ if (3, 6) <= sys.version_info < (3, 8):
+     pytest.skip("Temporary workaround for Travis problems", allow_module_level=True)
  
  
  def test_subcommand():
      """
      Test that a command from the example project is registered.
      """
      output = subprocess.check_output(['textx'], stderr=subprocess.STDOUT)
      assert b'testcommand' in output
  
  
  def test_subcommand_group():
      """
      Test that a command group is registered.
      """
      output = subprocess.check_output(['textx', 'testgroup'],
                                       stderr=subprocess.STDOUT)
      assert b'groupcommand1' in output
      assert b'groupcommand2' in output
  
Add workaround for Travis CI problems
## Code Before:
import subprocess


def test_subcommand():
    """
    Test that a command from the example project is registered.
    """
    output = subprocess.check_output(['textx'], stderr=subprocess.STDOUT)
    assert b'testcommand' in output


def test_subcommand_group():
    """
    Test that a command group is registered.
    """
    output = subprocess.check_output(['textx', 'testgroup'],
                                     stderr=subprocess.STDOUT)
    assert b'groupcommand1' in output
    assert b'groupcommand2' in output

## Instruction:
Add workaround for Travis CI problems
## Code After:
import sys
import pytest
import subprocess


if (3, 6) <= sys.version_info < (3, 8):
    pytest.skip("Temporary workaround for Travis problems", allow_module_level=True)


def test_subcommand():
    """
    Test that a command from the example project is registered.
    """
    output = subprocess.check_output(['textx'], stderr=subprocess.STDOUT)
    assert b'testcommand' in output


def test_subcommand_group():
    """
    Test that a command group is registered.
    """
    output = subprocess.check_output(['textx', 'testgroup'],
                                     stderr=subprocess.STDOUT)
    assert b'groupcommand1' in output
    assert b'groupcommand2' in output
