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
Some manual tests uses assertRaisesRegex method, that's named assertRaisesRegexp in Python 2 (and that name is used). If we want to continue support Python 2, then we should use the fix, described in this SO answer:
# Add that code somewhere in the testifnothasattr(unittest.TestCase, 'assertRaisesRegex'):
setattr(unittest.TestCase, 'assertRaisesRegex', unittest.TestCase.assertRaisesRegexp)
The text was updated successfully, but these errors were encountered:
generalmimon
changed the title
Python: Fix missing assertRaisesRegexp method in Python 3
Python: Fix missing assertRaisesRegexp method in Python 3.12
Apr 8, 2024
Some manual tests uses assertRaisesRegex method, that's named
assertRaisesRegexp
in Python 2 (and that name is used). If we want to continue support Python 2, then we should use the fix, described in this SO answer:The text was updated successfully, but these errors were encountered: