This code:
```
from unittest import TestCase
_testcase = TestCase('setUp')
getattr(_testcase, 'assertRaisesRegex', _testcase.assertRaisesRegexp)
```
was working in Python 3.11, but doesn't work anymore in 3.12:
AttributeError: 'TestCase' object has no attribute 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
The default value was previously ignored, while now it is evaluated even if it is not required. Is this an expected change behavior in Python 3.12?