jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/378203 )
Change subject: Use assertRaisesRegex instead of the deprecated assertRaisesRegexp method ......................................................................
Use assertRaisesRegex instead of the deprecated assertRaisesRegexp method
Deprecated since version 3.2.
Change-Id: I3aa57c36af42903d4472c4eadcc5669c3dc70a13 --- M tests/weblinkchecker_tests.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved
diff --git a/tests/weblinkchecker_tests.py b/tests/weblinkchecker_tests.py index 63171ac..e6a46ce 100644 --- a/tests/weblinkchecker_tests.py +++ b/tests/weblinkchecker_tests.py @@ -88,7 +88,7 @@ def test_invalid(self): """Test getting memento for invalid URL.""" # memento_client raises 'Exception', not a subclass. - self.assertRaisesRegexp( + self.assertRaisesRegex( Exception, 'Only HTTP URIs are supported', self._get_archive_url, 'invalid')
pywikibot-commits@lists.wikimedia.org