diff options
author | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2014-07-12 15:58:56 -0700 |
---|---|---|
committer | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2014-07-12 15:58:56 -0700 |
commit | da11013c62c7c49ab141bbe67f91ad34eeedd2c3 (patch) | |
tree | 3ff4dea722f8eadfef6476875fd9a0ca1d339fd2 | |
parent | b1b6a072168e2d3037a557231e7bffc15a1e3e36 (diff) | |
download | pyscss-da11013c62c7c49ab141bbe67f91ad34eeedd2c3.tar.gz |
Skip font tests when fontforge is unavailable.
-rw-r--r-- | scss/tests/conftest.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scss/tests/conftest.py b/scss/tests/conftest.py index d607a85..64ef44e 100644 --- a/scss/tests/conftest.py +++ b/scss/tests/conftest.py @@ -6,6 +6,11 @@ import re import pytest +try: + import fontforge +except ImportError: + fontforge = None + FILES_DIR = os.path.relpath(os.path.join(os.path.dirname(__file__), 'files')) # Globals, yuck! Populated below. @@ -47,9 +52,11 @@ def pytest_configure(config): if relfn.startswith(('from-sassc/', 'from-ruby/')): pytest_trigger = pytest.mark.skipif( not include_ruby, reason="skipping ruby tests by default") - elif relfn.startswith('xfail/'): pytest_trigger = pytest.mark.xfail + elif relfn.startswith('fonts/'): + pytest_trigger = pytest.mark.skipif( + not fontforge, reason="font tests require fontforge") if file_filters and not any(rx.search(relfn) for rx in file_filters): pytest_trigger = pytest.mark.skipif( |