fonttools/Tests/pens/__init__.py

7 lines
281 B
Python
Raw Normal View History

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.
2022-12-13 11:26:36 +00:00
if not hasattr(unittest.TestCase, "assertRaisesRegex"):
unittest.TestCase.assertRaisesRegex = unittest.TestCase.assertRaisesRegexp