jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1326072?usp=email )
Change subject: tests: Skip patrol_tests if error.code is
protectednamespace-interface
......................................................................
tests: Skip patrol_tests if error.code is protectednamespace-interface
Bug: T435030
Change-Id: I05288ea6e29afeaf43bed64e34e49337a030877d
---
M tests/token_tests.py
1 file changed, 4 insertions(+), 1 deletion(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/token_tests.py b/tests/token_tests.py
index 5289eac..a31962c 100755
--- a/tests/token_tests.py
+++ b/tests/token_tests.py
@@ -136,7 +136,10 @@
try:
result = list(mysite.patrol(rcid=rc['rcid']))
except APIError as error:
- if error.code == 'permissiondenied':
+ if error.code in (
+ 'permissiondenied',
+ 'protectednamespace-interface'
+ ):
self.skipTest(error)
raise
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1326072?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: I05288ea6e29afeaf43bed64e34e49337a030877d
Gerrit-Change-Number: 1326072
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]