From 2a6feb01bef181037b4b11742734903560de2272 Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Fri, 25 Mar 2016 19:40:02 +0100 Subject: [PATCH] [test] add __init__.py to turn 'test' into a sub-package --- Lib/cu2qu/test/__init__.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Lib/cu2qu/test/__init__.py diff --git a/Lib/cu2qu/test/__init__.py b/Lib/cu2qu/test/__init__.py new file mode 100644 index 000000000..654b18624 --- /dev/null +++ b/Lib/cu2qu/test/__init__.py @@ -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