From 49bcd19bd9757159ca28050aa8192b8c4eaa15ca Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 6 Nov 2024 16:23:58 -0500 Subject: [PATCH] [specializer_test] Remove Python2 remnants --- Tests/cffLib/specializer_test.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Tests/cffLib/specializer_test.py b/Tests/cffLib/specializer_test.py index 6a8e01907..29e11f243 100644 --- a/Tests/cffLib/specializer_test.py +++ b/Tests/cffLib/specializer_test.py @@ -33,10 +33,6 @@ def get_specialized_charstr(charstr, **kwargs): class CFFGeneralizeProgramTest(unittest.TestCase): def __init__(self, methodName): unittest.TestCase.__init__(self, methodName) - # Python 3 renamed assertRaisesRegexp to assertRaisesRegex, - # and fires deprecation warnings if a program uses the old name. - if not hasattr(self, "assertRaisesRegex"): - self.assertRaisesRegex = self.assertRaisesRegexp # no arguments/operands def test_rmoveto_none(self): @@ -537,10 +533,6 @@ class CFFGeneralizeProgramTest(unittest.TestCase): class CFFSpecializeProgramTest(unittest.TestCase): def __init__(self, methodName): unittest.TestCase.__init__(self, methodName) - # Python 3 renamed assertRaisesRegexp to assertRaisesRegex, - # and fires deprecation warnings if a program uses the old name. - if not hasattr(self, "assertRaisesRegex"): - self.assertRaisesRegex = self.assertRaisesRegexp # no arguments/operands def test_rmoveto_none(self):