
"""Test redefinition of colors."""

import colorise
import pytest


@pytest.mark.skip_on_windows
def test_redefine_colors_error():
    with pytest.raises(colorise.error.NotSupportedError):
        colorise.redefine_colors({})


"""Test redefinition of colors."""

import colorise
import pytest


@pytest.mark.skip_on_windows
def test_redefine_colors_error():
    assert not colorise.can_redefine_colors()

    with pytest.raises(colorise.error.NotSupportedError):
        colorise.redefine_colors({})

Test color redefinition on nix
Test color redefinition on nix

  
  """Test redefinition of colors."""
  
  import colorise
  import pytest
  
  
  @pytest.mark.skip_on_windows
  def test_redefine_colors_error():
+     assert not colorise.can_redefine_colors()
+ 
      with pytest.raises(colorise.error.NotSupportedError):
          colorise.redefine_colors({})
  
Test color redefinition on nix
## Code Before:

"""Test redefinition of colors."""

import colorise
import pytest


@pytest.mark.skip_on_windows
def test_redefine_colors_error():
    with pytest.raises(colorise.error.NotSupportedError):
        colorise.redefine_colors({})

## Instruction:
Test color redefinition on nix
## Code After:

"""Test redefinition of colors."""

import colorise
import pytest


@pytest.mark.skip_on_windows
def test_redefine_colors_error():
    assert not colorise.can_redefine_colors()

    with pytest.raises(colorise.error.NotSupportedError):
        colorise.redefine_colors({})
