Skip to content

MathGlyphTest.test_guidelines_mul failing on Alpine Linux #178

@Cogitri

Description

@Cogitri

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions