jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1258076?usp=email )
Change subject: tests: Replace assertRaises with assertRaisesRegex in
proofreadpage_tests
......................................................................
tests: Replace assertRaises with assertRaisesRegex in proofreadpage_tests
Bug: T154281
Change-Id: If8c29e4c1e99a093ebb605560e3e9a2a5cea1c6d
---
M tests/proofreadpage_tests.py
1 file changed, 3 insertions(+), 3 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/tests/proofreadpage_tests.py b/tests/proofreadpage_tests.py
index 333fdaf..0afd42d 100755
--- a/tests/proofreadpage_tests.py
+++ b/tests/proofreadpage_tests.py
@@ -830,11 +830,11 @@
proofread_page = ProofreadPage(self.site, page_title)
# Check start/end limits.
- with self.assertRaises(ValueError):
+ with self.assertRaisesRegex(ValueError, ' are not in valid range '):
index_page.page_gen(-1, 2)
- with self.assertRaises(ValueError):
+ with self.assertRaisesRegex(ValueError, ' are not in valid range '):
index_page.page_gen(1, -1)
- with self.assertRaises(ValueError):
+ with self.assertRaisesRegex(ValueError, ' are not in valid range '):
index_page.page_gen(2, 1)
# Check quality filters.
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1258076?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: If8c29e4c1e99a093ebb605560e3e9a2a5cea1c6d
Gerrit-Change-Number: 1258076
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]