Dalba has uploaded a new change for review. ( 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(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/03/378203/1 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') -- To view, visit https://gerrit.wikimedia.org/r/378203 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I3aa57c36af42903d4472c4eadcc5669c3dc70a13 Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Dalba <dalba.w...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits