this should allow to run the basic test suite against the dependency-less core of fonttools library
7 lines
281 B
Python
7 lines
281 B
Python
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
|