https://bugzilla.redhat.com/show_bug.cgi?id=2067200
Miro Hrončok <mhroncok(a)redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|unspecified |urgent
--- Comment #1 from Miro Hrončok <mhroncok(a)redhat.com> ---
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