[test] add __init__.py to turn 'test' into a sub-package
This commit is contained in:
parent
072a60da97
commit
2a6feb01be
16
Lib/cu2qu/test/__init__.py
Normal file
16
Lib/cu2qu/test/__init__.py
Normal file
@ -0,0 +1,16 @@
|
||||
import os
|
||||
try:
|
||||
from ufoLib.glifLib import GlyphSet
|
||||
except ImportError:
|
||||
from robofab.glifLib import GlyphSet
|
||||
|
||||
DATADIR = os.path.join(
|
||||
os.path.abspath(os.path.dirname(os.path.realpath(__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
|
Loading…
x
Reference in New Issue
Block a user