jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/993003?usp=email )
Change subject: Revert "[tests] skip PetScanPageGeneratorTestCase if APIError occurred" ......................................................................
Revert "[tests] skip PetScanPageGeneratorTestCase if APIError occurred"
This reverts commit 301b272d4a09b1f2613df88a32a0440ac4cbb94a.
Reason for revert: try again
Bug: T352482 Change-Id: I8d7779f366cd57937f4546c2b91b1ce6a136dc91 --- M tests/pagegenerators_tests.py 1 file changed, 15 insertions(+), 3 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/pagegenerators_tests.py b/tests/pagegenerators_tests.py index 1b43633..f6b90b6 100755 --- a/tests/pagegenerators_tests.py +++ b/tests/pagegenerators_tests.py @@ -16,7 +16,6 @@ import pywikibot from pywikibot import date, pagegenerators from pywikibot.exceptions import ( - APIError, NoPageError, ServerError, UnknownExtensionError, @@ -378,8 +377,7 @@ site = self.get_site() gen = pagegenerators.PetScanPageGenerator(['Pywikibot Protect Test'], True, None, site) - with skipping(ServerError, - APIError): # (temporary) disabled due to T352482 + with skipping(ServerError): self.assertPageTitlesEqual(gen, titles=( 'User:Sn1per/ProtectTest1', 'User:Sn1per/ProtectTest2'), site=site)