[ttGlyphPen_test] remove OverflowError test
This commit is contained in:
parent
aabc894d19
commit
08c663f798
@ -217,21 +217,6 @@ class TTGlyphPenTest(TestCase):
|
||||
|
||||
self.assertEqual(expectedGlyph, compositeGlyph)
|
||||
|
||||
def test_transform_overflow_error(self):
|
||||
componentName = 'a'
|
||||
glyphSet = {}
|
||||
pen = TTGlyphPen(glyphSet, decomposeOverflowingTransform=False)
|
||||
|
||||
pen.moveTo((0, 0))
|
||||
pen.lineTo((0, 1))
|
||||
pen.lineTo((1, 0))
|
||||
pen.closePath()
|
||||
glyphSet[componentName] = _TestGlyph(pen.glyph())
|
||||
|
||||
pen.addComponent(componentName, (2.00001, 0, 0, 1, 0, 0))
|
||||
with self.assertRaisesRegex(OverflowError, "too large"):
|
||||
pen.glyph()
|
||||
|
||||
|
||||
class _TestGlyph(object):
|
||||
def __init__(self, glyph):
|
||||
|
Loading…
x
Reference in New Issue
Block a user