From ab7628b3f564d8d13f1896e85e8b07870f265cc1 Mon Sep 17 00:00:00 2001 From: "Colin M. Ford" Date: Thu, 6 Apr 2023 10:58:31 -0400 Subject: [PATCH] adding `importerskip` for glyphsapp tests --- Tests/varLib/interpolatable_test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Tests/varLib/interpolatable_test.py b/Tests/varLib/interpolatable_test.py index 354b059a1..10b9cc30a 100644 --- a/Tests/varLib/interpolatable_test.py +++ b/Tests/varLib/interpolatable_test.py @@ -5,6 +5,7 @@ import shutil import sys import tempfile import unittest +import pytest try: import scipy @@ -103,6 +104,7 @@ class InterpolatableTest(unittest.TestCase): self.assertIsNone(interpolatable_main([designspace_path])) def test_glyphsapp(self): + pytest.importorskip("glyphsLib") glyphsapp_path = self.get_test_input("InterpolateLayout.glyphs") self.assertIsNone(interpolatable_main([glyphsapp_path])) @@ -221,7 +223,8 @@ class InterpolatableTest(unittest.TestCase): # normal order, with --ignore-missing self.assertIsNone(interpolatable_main(["--ignore-missing", designspace_path])) - def test_sparse_designspace(self): + def test_sparse_glyphsapp(self): + pytest.importorskip("glyphsLib") glyphsapp_path = self.get_test_input("SparseMasters.glyphs") problems = interpolatable_main(["--quiet", glyphsapp_path])