textlib.categoryFormat() only works when the categories are on the same site as config.family/config.mylang
The breakage was introduced with:
https://gerrit.wikimedia.org/r/#/c/147845/
Which caused the ar:wikipedia and test:wikidata travis builds to break
https://travis-ci.org/wikimedia/pywikibot-core/jobs/30527485
FAIL: test_category_format_Page (__main__.TestFormatFunctions)
Traceback (most recent call last):
File "tests/textlib_tests.py", line 130, in test_category_format_Page textlib.categoryFormat(data, self.site))
AssertionError: u'[[Category:Cat1]]\n[[Category:Cat2]]\n' != u'[[en:Category:Cat1]]\n[[en:Category:Cat2]]\n'
- [[Category:Cat1]]
+ [[en:Category:Cat1]]
? +++
- [[Category:Cat2]]
+ [[en:Category:Cat2]]
? +++
I have tested both of these proposed changes, and neither fixes this breakage:
https://gerrit.wikimedia.org/r/#/c/147860/
https://gerrit.wikimedia.org/r/#/c/148553/
Version: core-(2.0)
Severity: critical