[ttGlyphPen_test] remove OverflowError test

This commit is contained in:
Cosimo Lupo 2018-03-01 19:59:49 +00:00
parent aabc894d19
commit 08c663f798
No known key found for this signature in database
GPG Key ID: 59D54DB0C9976482

View File

@ -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):