Closed tirkarthi closed 3 years ago
https://github.com/python/cpython/pull/28268
https://github.com/pytest-dev/nose2pytest/blob/758b27ab4a06f93c601cd52f84d152b9b5a5bbe6/nose2pytest/assert_tools.py#L88 https://github.com/pytest-dev/nose2pytest/blob/758b27ab4a06f93c601cd52f84d152b9b5a5bbe6/nose2pytest/assert_tools.py#L89
Since the library is Python 3.5 + the recommended aliases can be used
assertRaisesRegexp -> assertRaisesRegex assertRegexpMatches -> assertRegex
https://github.com/python/cpython/pull/28268
https://github.com/pytest-dev/nose2pytest/blob/758b27ab4a06f93c601cd52f84d152b9b5a5bbe6/nose2pytest/assert_tools.py#L88 https://github.com/pytest-dev/nose2pytest/blob/758b27ab4a06f93c601cd52f84d152b9b5a5bbe6/nose2pytest/assert_tools.py#L89
Since the library is Python 3.5 + the recommended aliases can be used
assertRaisesRegexp -> assertRaisesRegex assertRegexpMatches -> assertRegex