Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MathGlyphTest.test_guidelines_mul failing on Alpine Linux #178

Open
Cogitri opened this issue Jan 4, 2020 · 0 comments
Open

MathGlyphTest.test_guidelines_mul failing on Alpine Linux #178

Cogitri opened this issue Jan 4, 2020 · 0 comments

Comments

@Cogitri
Copy link

Cogitri commented Jan 4, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant