You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code is not working anymore in python 3.12: it seems that the default value is evaluated before the attribute is returned: AttributeError: 'TestCase' object has no attribute 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
I have quickly patched with assertRaisesRegex = getattr(_testcase, 'assertRaisesRegex', None) or _testcase.assertRaisesRegexp
but perhaps there's a better way.
The text was updated successfully, but these errors were encountered:
python-sgp4/sgp4/tests.py
Lines 37 to 38 in fac882a
This code is not working anymore in python 3.12: it seems that the default value is evaluated before the attribute is returned:
AttributeError: 'TestCase' object has no attribute 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?
I have quickly patched with
assertRaisesRegex = getattr(_testcase, 'assertRaisesRegex', None) or _testcase.assertRaisesRegexp
but perhaps there's a better way.
The text was updated successfully, but these errors were encountered: