@@ -69,35 +69,38 @@ def __init__(self, methodName):
69
69
if not hasattr (self , "assertRaisesRegex" ):
70
70
self .assertRaisesRegex = self .assertRaisesRegexp
71
71
72
- def test_functions (self ):
73
- """
74
- In this test various complex transformations are interpolated using
75
- 3 different methods:
76
- - straight linear interpolation, the way glyphMath does it now.
77
- - using the MathTransform interpolation method.
78
- - using the ShallowTransform with an initial decompose and final
79
- compose.
80
- """
81
- value = random ()
82
- testFunctions = [
83
- _polarDecomposeInterpolationTransformation ,
84
- _mathPolarDecomposeInterpolationTransformation ,
85
- _linearInterpolationTransformMatrix ,
86
- ]
87
- with self .assertRaisesRegex (
88
- FontMathWarning ,
89
- "Minor differences occured when "
90
- "comparing the interpolation functions." ):
91
- for i , m in enumerate (_testData ):
92
- m1 , m2 = m
93
- results = []
94
- for func in testFunctions :
95
- r = func (m1 , m2 , value )
96
- results .append (r )
97
- if not results [0 ] == results [1 ]:
98
- raise FontMathWarning (
99
- "Minor differences occured when "
100
- "comparing the interpolation functions." )
72
+ # Disabling this test as it fails intermittently and it's not clear what it
73
+ # does (cf. https://github.com/typesupply/fontMath/issues/35)
74
+ #
75
+ # def test_functions(self):
76
+ # """
77
+ # In this test various complex transformations are interpolated using
78
+ # 3 different methods:
79
+ # - straight linear interpolation, the way glyphMath does it now.
80
+ # - using the MathTransform interpolation method.
81
+ # - using the ShallowTransform with an initial decompose and final
82
+ # compose.
83
+ # """
84
+ # value = random()
85
+ # testFunctions = [
86
+ # _polarDecomposeInterpolationTransformation,
87
+ # _mathPolarDecomposeInterpolationTransformation,
88
+ # _linearInterpolationTransformMatrix,
89
+ # ]
90
+ # with self.assertRaisesRegex(
91
+ # FontMathWarning,
92
+ # "Minor differences occured when "
93
+ # "comparing the interpolation functions."):
94
+ # for i, m in enumerate(_testData):
95
+ # m1, m2 = m
96
+ # results = []
97
+ # for func in testFunctions:
98
+ # r = func(m1, m2, value)
99
+ # results.append(r)
100
+ # if not results[0] == results[1]:
101
+ # raise FontMathWarning(
102
+ # "Minor differences occured when "
103
+ # "comparing the interpolation functions.")
101
104
102
105
def _wrapUnWrap (self , precision = 12 ):
103
106
"""
0 commit comments