fix import of colour package

This commit is contained in:
Josh Friend
2014-12-13 13:23:16 -05:00
committed by Konsta Vesterinen
parent abfb29dfa7
commit e2e03bd5e2
2 changed files with 3 additions and 2 deletions

View File

@@ -5,7 +5,8 @@ from .scalar_coercible import ScalarCoercible
colour = None
try:
from colour import Colour as python_colour_type
import colour
python_colour_type = colour.Color
except ImportError:
python_colour_type = None

View File

@@ -6,7 +6,7 @@ from sqlalchemy_utils.types import color
from tests import TestCase
@mark.skipif('color.colour is None')
@mark.skipif('color.python_colour_type is None')
class TestColorType(TestCase):
def create_models(self):
class Document(self.Base):