xref: /aosp_15_r20/external/fonttools/Tests/pens/__init__.py (revision e1fe3e4ad2793916b15cccdc4a7da52a7e1dd0e9)
1*e1fe3e4aSElliott Hughesimport unittest
2*e1fe3e4aSElliott Hughes
3*e1fe3e4aSElliott Hughes# Python 3 renamed 'assertRaisesRegexp' to 'assertRaisesRegex', and fires
4*e1fe3e4aSElliott Hughes# deprecation warnings if a program uses the old name.
5*e1fe3e4aSElliott Hughesif not hasattr(unittest.TestCase, "assertRaisesRegex"):
6*e1fe3e4aSElliott Hughes    unittest.TestCase.assertRaisesRegex = unittest.TestCase.assertRaisesRegexp
7