From 80598d3c2c03ab7f2de7ee80a771ce2c28b46afc Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Thu, 6 May 2021 20:12:14 +0100 Subject: [PATCH] skip removeOveraps_test if pathops can't be imported --- Tests/ttLib/removeOverlaps_test.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Tests/ttLib/removeOverlaps_test.py b/Tests/ttLib/removeOverlaps_test.py index d4cb8558f..383ec7b35 100644 --- a/Tests/ttLib/removeOverlaps_test.py +++ b/Tests/ttLib/removeOverlaps_test.py @@ -1,8 +1,10 @@ import logging -from fontTools.ttLib.removeOverlaps import _simplify -import pathops import pytest +pathops = pytest.importorskip("pathops") + +from fontTools.ttLib.removeOverlaps import _simplify + def test_pathops_simplify_bug_workaround(caplog): # Paths extracted from Noto Sans Ethiopic instance that fails skia-pathops