jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/578351 )
Change subject: [tests] Skip eventstreams test if eventstreams is not implemented for a family ......................................................................
[tests] Skip eventstreams test if eventstreams is not implemented for a family
Bug: T247251 Change-Id: I58b39c26314c0c7ecc7449e97e52aceab71b3f91 --- M tests/eventstreams_tests.py 1 file changed, 5 insertions(+), 2 deletions(-)
Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/eventstreams_tests.py b/tests/eventstreams_tests.py index 01ec958..dc2c978 100644 --- a/tests/eventstreams_tests.py +++ b/tests/eventstreams_tests.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """Tests for the eventstreams module.""" # -# (C) Pywikibot team, 2017-2019 +# (C) Pywikibot team, 2017-2020 # # Distributed under the terms of the MIT license. # @@ -301,8 +301,11 @@ ValueError 'Unterminated string' when json.load is processed if the limit is high enough. """ + try: + self.es = EventStreamsTestClass(streams='recentchange') + except NotImplementedError as e: + self.skipTest(e) limit = 50 - self.es = EventStreamsTestClass(streams='recentchange') self.es.set_maximum_items(limit) self.assertLength(list(self.es), limit)
pywikibot-commits@lists.wikimedia.org