[ttGlyphPen_test] ttProgram has __eq__ now, remove unnecessary assignments
previously assertEqual would fail, despite the `program` attributes where both empty, as the object have different id(). The Program.__eq__ method now compares self.__dict__ == other.__dict__, hence the test pass.
This commit is contained in:
parent
35c46aa0e2
commit
d4b9a2bec3
@ -68,7 +68,6 @@ class TTGlyphPenTest(unittest.TestCase):
|
||||
pen.endPath()
|
||||
endPathGlyph = pen.glyph()
|
||||
|
||||
endPathGlyph.program = closePathGlyph.program
|
||||
self.assertEqual(closePathGlyph, endPathGlyph)
|
||||
|
||||
def test_glyph_errorOnUnendedContour(self):
|
||||
@ -105,7 +104,6 @@ class TTGlyphPenTest(unittest.TestCase):
|
||||
pen.closePath()
|
||||
plainGlyph = pen.glyph()
|
||||
|
||||
plainGlyph.program = compositeGlyph.program
|
||||
self.assertEqual(plainGlyph, compositeGlyph)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user