skip removeOveraps_test if pathops can't be imported

This commit is contained in:
Cosimo Lupo 2021-05-06 20:12:14 +01:00
parent 27e8943d3c
commit 80598d3c2c

View File

@ -1,8 +1,10 @@
import logging import logging
from fontTools.ttLib.removeOverlaps import _simplify
import pathops
import pytest import pytest
pathops = pytest.importorskip("pathops")
from fontTools.ttLib.removeOverlaps import _simplify
def test_pathops_simplify_bug_workaround(caplog): def test_pathops_simplify_bug_workaround(caplog):
# Paths extracted from Noto Sans Ethiopic instance that fails skia-pathops # Paths extracted from Noto Sans Ethiopic instance that fails skia-pathops