Permalink
Browse files

Make PyScss test optional if module not installed.

  • Loading branch information...
miracle2k committed Nov 19, 2012
1 parent 22a96b4 commit 5075b91a1224438b6a56313e81f9f6796ca3050d
Showing with 6 additions and 0 deletions.
  1. +6 −0 tests/test_filters.py
View
@@ -1,4 +1,5 @@
from nose.tools import assert_raises
+from nose import SkipTest
from helpers import TempEnvironmentHelper
@@ -8,6 +9,11 @@ def test_pyscss(self):
"""This filter used to make trouble because if required
Environment.url and Environment.directory to be set.
"""
+ try:
+ import scss
+ except ImportError:
+ raise SkipTest()
+
self.create_files({'foo': ''})
bundle = self.mkbundle('foo', filters='pyscss', output='out')

0 comments on commit 5075b91

Please sign in to comment.