https://bugzilla.redhat.com/show_bug.cgi?id=2067200

Miro Hrončok <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|unspecified                 |urgent



--- Comment #1 from Miro Hrončok <[email protected]> ---
fonttools is currently one of the biggest blockers of the Python 3.11 mass
rebuild currently in progress. Hence, setting the severity to urgent.

I believe the problem reported here is just a bad enum str() expectation in the
tests. 


However, there are now 2 failures:

=================================== FAILURES
===================================
____________________ TestCu2QuPen.test_ignore_single_points
____________________
self = <pens.cu2quPen_test.TestCu2QuPen testMethod=test_ignore_single_points>
    def test_ignore_single_points(self):
        pen = DummyPen()
        try:
            logging.captureWarnings(True)
            with CapturingLogHandler("py.warnings", level="WARNING") as log:
                quadpen = Cu2QuPen(pen, MAX_ERR, ignore_single_points=True)
        finally:
            logging.captureWarnings(False)
        quadpen.moveTo((0, 0))
        quadpen.endPath()
        quadpen.moveTo((1, 1))
        quadpen.closePath()

        self.assertGreaterEqual(len(log.records), 1)
        self.assertIn("ignore_single_points is deprecated",
>                     log.records[0].args[0])
E       IndexError: tuple index out of range
Tests/pens/cu2quPen_test.py:261: IndexError
___________________________ test_formatVersionTuple
____________________________
ufo_path =
PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_formatVersionTuple0/TestFont.ufo')
    def test_formatVersionTuple(ufo_path):
        reader = UFOReader(ufo_path)

        assert reader.formatVersionTuple == (3, 0)
        assert reader.formatVersionTuple.major == 3
        assert reader.formatVersionTuple.minor == 0
>       assert str(reader.formatVersionTuple) == "3.0"
E       AssertionError: assert 'UFOFormatVersion.FORMAT_3_0' == '3.0'
E         - 3.0
E         + UFOFormatVersion.FORMAT_3_0
Tests/ufoLib/ufoLib_test.py:38: AssertionError


-- 
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2067200
_______________________________________________
fonts-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to