jenkins-bot has submitted this change and it was merged.
Change subject: Fix TestYearPageGenerator when date formats are missing ......................................................................
Fix TestYearPageGenerator when date formats are missing
This should fix travis ci which tests with language 'ar' which is missing some date formats.
Bug: T85313 Change-Id: I586ce98394b0ad12a2c02d8d6b20bb2135c57cd1 --- M tests/pagegenerators_tests.py 1 file changed, 4 insertions(+), 1 deletion(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/pagegenerators_tests.py b/tests/pagegenerators_tests.py index e1c6c0c..30fbf52 100755 --- a/tests/pagegenerators_tests.py +++ b/tests/pagegenerators_tests.py @@ -288,7 +288,10 @@ site = self.get_site() # Skip if its wikidata because T85645 if site.family == "wikidata": - raise unittest.SkipTest + raise unittest.SkipTest('date.py does not support wikidata') + # Some languages are missing (T85681) + if (site.language() not in date.formats['YearBC']) or (site.language() not in date.formats['YearAD']): + raise unittest.SkipTest('Date formats for this language are missing from date.py') start = -20 end = 2026