jenkins-bot has submitted this change and it was merged.
Change subject: [IMPR] Give more precise message for assert error ......................................................................
[IMPR] Give more precise message for assert error
Change-Id: Ibba56032fdd90c4d6991e74d75696f04815a1b0f --- M tests/l10n_tests.py 1 file changed, 2 insertions(+), 1 deletion(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/l10n_tests.py b/tests/l10n_tests.py index 287d602..f184ff7 100644 --- a/tests/l10n_tests.py +++ b/tests/l10n_tests.py @@ -98,7 +98,8 @@ keys = i18n.twget_keys(package) for key in keys: self.assertIn(key, languages, - "%s not found in site codes" % key) + "'%s' - json key '%s' is not a site language" + % (package, key))
if __name__ == '__main__':
pywikibot-commits@lists.wikimedia.org