Skip to content

Commit 21b8bb8

Browse files
committed
[test_mathTransform] disable intermittently failing test_functions
At least until we figure out what it's actually doing. #35 https://travis-ci.org/typesupply/fontMath/builds/279556453
1 parent 3dbac89 commit 21b8bb8

File tree

1 file changed

+32
-29
lines changed

1 file changed

+32
-29
lines changed

Lib/fontMath/test/test_mathTransform.py

+32-29
Original file line numberDiff line numberDiff line change
@@ -69,35 +69,38 @@ def __init__(self, methodName):
6969
if not hasattr(self, "assertRaisesRegex"):
7070
self.assertRaisesRegex = self.assertRaisesRegexp
7171

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.")
101104

102105
def _wrapUnWrap(self, precision=12):
103106
"""

0 commit comments

Comments
 (0)