1import os 2from fontTools.ufoLib.glifLib import GlyphSet 3import pkg_resources 4 5DATADIR = os.path.join(os.path.dirname(__file__), 'data') 6CUBIC_GLYPHS = GlyphSet(os.path.join(DATADIR, 'cubic')) 7QUAD_GLYPHS = GlyphSet(os.path.join(DATADIR, 'quadratic')) 8 9import unittest 10# Python 3 renamed 'assertRaisesRegexp' to 'assertRaisesRegex', and fires 11# deprecation warnings if a program uses the old name. 12if not hasattr(unittest.TestCase, 'assertRaisesRegex'): 13 unittest.TestCase.assertRaisesRegex = unittest.TestCase.assertRaisesRegexp 14