aboutsummaryrefslogtreecommitdiff
path: root/Tests/pens/__init__.py
blob: 187b9816eefa298f768eea88875474617743f023 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
# 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