fonttools/Tests/pens/__init__.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
533 B
Python
Raw Normal View History

import os
from fontTools.ufoLib.glifLib import GlyphSet
import pkg_resources
DATADIR = os.path.join(os.path.dirname(__file__), "data")
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
# 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