File: disable-pathops-test.patch

package info (click to toggle)
ufo2ft 3.7.0-4~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 6,520 kB
  • sloc: python: 18,685; makefile: 7
file content (55 lines) | stat: -rw-r--r-- 2,448 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
From: =?utf-8?b?IllhbyBXZWkgKOmtj+mKmOW7tyki?= <mwei@debian.org>
Date: Wed, 16 Oct 2024 20:22:46 -0400
Subject: disable pathops test

This will disable tests that requires skia-pathops, since skia is not in
Debian yet.

Origin: vendor
Forwarded: not-needed
Last-Update: 2024-10-16
---
 tests/integration_test.py  | 2 ++
 tests/preProcessor_test.py | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/tests/integration_test.py b/tests/integration_test.py
index 759ab1c..e359012 100644
--- a/tests/integration_test.py
+++ b/tests/integration_test.py
@@ -134,6 +134,7 @@ class IntegrationTest:
         otf = compileOTF(testufo, removeOverlaps=True)
         expectTTX(otf, "TestFont-NoOverlaps-CFF.ttx")
 
+    @pytest.mark.skip(reason="skia-pathops is unavailable in debian yet")
     def test_removeOverlaps_CFF_pathops(self, testufo):
         otf = compileOTF(testufo, removeOverlaps=True, overlapsBackend="pathops")
         expectTTX(otf, "TestFont-NoOverlaps-CFF-pathops.ttx")
@@ -142,6 +143,7 @@ class IntegrationTest:
         ttf = compileTTF(testufo, removeOverlaps=True)
         expectTTX(ttf, "TestFont-NoOverlaps-TTF.ttx")
 
+    @pytest.mark.skip(reason="skia-pathops is unavailable in debian yet")
     def test_removeOverlaps_pathops(self, testufo):
         ttf = compileTTF(testufo, removeOverlaps=True, overlapsBackend="pathops")
         expectTTX(ttf, "TestFont-NoOverlaps-TTF-pathops.ttx")
diff --git a/tests/preProcessor_test.py b/tests/preProcessor_test.py
index a58c379..2aee10f 100644
--- a/tests/preProcessor_test.py
+++ b/tests/preProcessor_test.py
@@ -91,6 +91,7 @@ class TTFPreProcessorTest:
         assert (glyphSets0["a"][0][0].x - glyphSets1["a"][0][0].x) == -40
         assert (glyphSets1["a"][0][0].y - glyphSets0["a"][0][0].y) == 10
 
+    @pytest.mark.skip(reason="skia-pathops is unavailable in debian yet")
     def test_custom_filters_as_argument(self, FontClass):
         from ufo2ft.filters import RemoveOverlapsFilter, TransformationsFilter
 
@@ -210,6 +211,7 @@ class TTFInterpolatablePreProcessorTest:
         assert (glyphSets[0]["a"][0][0].x - glyphSets[1]["a"][0][0].x) == -40
         assert (glyphSets[1]["a"][0][0].y - glyphSets[0]["a"][0][0].y) == 10
 
+    @pytest.mark.skip(reason="skia-pathops is unavailable in debian yet")
     def test_custom_filters_as_argument(self, FontClass):
         ufo1 = FontClass(getpath("TestFont.ufo"))
         ufo2 = FontClass(getpath("TestFont.ufo"))