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