jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/327559 )
Change subject: Add new error code for can't execute special page ......................................................................
Add new error code for can't execute special page
Bug: T153323 Change-Id: Ic6fed1177ced52040bfe214170b337cee286f97b --- M tests/site_tests.py 1 file changed, 2 insertions(+), 1 deletion(-)
Approvals: Dalba: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/site_tests.py b/tests/site_tests.py index a504d44..5de88b5 100644 --- a/tests/site_tests.py +++ b/tests/site_tests.py @@ -811,7 +811,8 @@ try: unwatchedpages = list(mysite.unwatchedpages(total=10)) except api.APIError as error: - if error.code == 'gqpspecialpage-cantexecute': + if error.code in ('specialpage-cantexecute', + 'gqpspecialpage-cantexecute'): # User must have correct permissions to use Special:UnwatchedPages raise unittest.SkipTest(error) raise