[specializer_test] Remove Python2 remnants

This commit is contained in:
Behdad Esfahbod 2024-11-06 16:23:58 -05:00
parent 776e1ce132
commit 49bcd19bd9

View File

@ -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):