2016-03-25 19:40:02 +01:00
|
|
|
import os
|
2018-11-01 16:41:08 +00:00
|
|
|
from fontTools.ufoLib.glifLib import GlyphSet
|
2016-11-02 17:25:37 +00:00
|
|
|
import pkg_resources
|
2016-03-25 19:40:02 +01:00
|
|
|
|
2017-10-31 12:53:29 +00:00
|
|
|
DATADIR = os.path.join(os.path.dirname(__file__), "data")
|
2016-03-25 19:40:02 +01:00
|
|
|
CUBIC_GLYPHS = GlyphSet(os.path.join(DATADIR, "cubic"))
|
|
|
|
QUAD_GLYPHS = GlyphSet(os.path.join(DATADIR, "quadratic"))
|
|
|
|
|
|
|
|
import unittest
|
2022-12-13 11:26:36 +00:00
|
|
|
|
2016-03-25 19:40:02 +01:00
|
|
|
# Python 3 renamed 'assertRaisesRegexp' to 'assertRaisesRegex', and fires
|
|
|
|
# deprecation warnings if a program uses the old name.
|
|
|
|
if not hasattr(unittest.TestCase, "assertRaisesRegex"):
|
|
|
|
unittest.TestCase.assertRaisesRegex = unittest.TestCase.assertRaisesRegexp
|