From 21b8bb80bfeb0d1d3de3457ede3574e24c13c76d Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Sun, 1 Oct 2017 19:09:01 +0100 Subject: [PATCH] [test_mathTransform] disable intermittently failing `test_functions` At least until we figure out what it's actually doing. https://github.com/typesupply/fontMath/issues/35 https://travis-ci.org/typesupply/fontMath/builds/279556453 --- Lib/fontMath/test/test_mathTransform.py | 61 +++++++++++++------------ 1 file changed, 32 insertions(+), 29 deletions(-) diff --git a/Lib/fontMath/test/test_mathTransform.py b/Lib/fontMath/test/test_mathTransform.py index afa51c4..17b8993 100644 --- a/Lib/fontMath/test/test_mathTransform.py +++ b/Lib/fontMath/test/test_mathTransform.py @@ -69,35 +69,38 @@ def __init__(self, methodName): if not hasattr(self, "assertRaisesRegex"): self.assertRaisesRegex = self.assertRaisesRegexp - def test_functions(self): - """ - In this test various complex transformations are interpolated using - 3 different methods: - - straight linear interpolation, the way glyphMath does it now. - - using the MathTransform interpolation method. - - using the ShallowTransform with an initial decompose and final - compose. - """ - value = random() - testFunctions = [ - _polarDecomposeInterpolationTransformation, - _mathPolarDecomposeInterpolationTransformation, - _linearInterpolationTransformMatrix, - ] - with self.assertRaisesRegex( - FontMathWarning, - "Minor differences occured when " - "comparing the interpolation functions."): - for i, m in enumerate(_testData): - m1, m2 = m - results = [] - for func in testFunctions: - r = func(m1, m2, value) - results.append(r) - if not results[0] == results[1]: - raise FontMathWarning( - "Minor differences occured when " - "comparing the interpolation functions.") + # Disabling this test as it fails intermittently and it's not clear what it + # does (cf. https://github.com/typesupply/fontMath/issues/35) + # + # def test_functions(self): + # """ + # In this test various complex transformations are interpolated using + # 3 different methods: + # - straight linear interpolation, the way glyphMath does it now. + # - using the MathTransform interpolation method. + # - using the ShallowTransform with an initial decompose and final + # compose. + # """ + # value = random() + # testFunctions = [ + # _polarDecomposeInterpolationTransformation, + # _mathPolarDecomposeInterpolationTransformation, + # _linearInterpolationTransformMatrix, + # ] + # with self.assertRaisesRegex( + # FontMathWarning, + # "Minor differences occured when " + # "comparing the interpolation functions."): + # for i, m in enumerate(_testData): + # m1, m2 = m + # results = [] + # for func in testFunctions: + # r = func(m1, m2, value) + # results.append(r) + # if not results[0] == results[1]: + # raise FontMathWarning( + # "Minor differences occured when " + # "comparing the interpolation functions.") def _wrapUnWrap(self, precision=12): """