-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Hello,
I'm currently packaging fontMath for Alpine Linux and the mentioned tests fails. Here's the output:
___________________________________________________________________________________________________ MathGlyphTest.test_guidelines_mul ___________________________________________________________________________________________________
self = <fontMath.test.test_mathGlyph.MathGlyphTest testMethod=test_guidelines_mul>
def test_guidelines_mul(self):
glyph1 = self._setupTestGlyph()
glyph1.guidelines = [
dict(x=1, y=3, angle=5, name="test", identifier="1",
color="0,0,0,0")
]
glyph2 = glyph1 * 3
expected = [
dict(x=1 * 3, y=3 * 3, angle=5, name="test", identifier="1",
color="0,0,0,0")
]
> self.assertEqual(glyph2.guidelines, expected)
E AssertionError: Lists differ: [{'x'[17 chars]le': 4.999999999999999, 'name': 'test', 'ident[28 chars],0'}] != [{'x'[17 chars]le': 5, 'name': 'test', 'identifier': '1', 'color': '0,0,0,0'}]
E
E First differing element 0:
E {'x':[16 chars]le': 4.999999999999999, 'name': 'test', 'ident[27 chars]0,0'}
E {'x':[16 chars]le': 5, 'name': 'test', 'identifier': '1', 'color': '0,0,0,0'}
E
E - [{'angle': 4.999999999999999,
E + [{'angle': 5,
E 'color': '0,0,0,0',
E 'identifier': '1',
E 'name': 'test',
E 'x': 3,
E 'y': 9}]
Lib/fontMath/test/test_mathGlyph.py:398: AssertionError
We're using Python 3.8.1
Metadata
Metadata
Assignees
Labels
No labels