John Vandenberg has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/203963

Change subject: i18n test: arz is not a known locale on Ubuntu
......................................................................

i18n test: arz is not a known locale on Ubuntu

The test test_pagegen_i18n_input requires the
test site code is a known locale, and doesnt have
a translation for the i18n message, causing the
i18n to fallback to English.

Change-Id: I6c54f902285101b9c13af4e6b2b75d4237cb3f3b
---
M tests/i18n_tests.py
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/63/203963/1

diff --git a/tests/i18n_tests.py b/tests/i18n_tests.py
index c116abb..c8a0842 100644
--- a/tests/i18n_tests.py
+++ b/tests/i18n_tests.py
@@ -335,7 +335,7 @@
     """Test i18n.input."""
 
     family = 'wikipedia'
-    code = 'arz'
+    code = 'gv'
 
     message_package = 'scripts.i18n'
 
@@ -343,7 +343,7 @@
     def setUpClass(cls):
         if cls.code in i18n.twget_keys('pywikibot-enter-category-name'):
             raise unittest.SkipTest(
-                '%s has a translation for %s'
+                '%s has a translation for %s. Update code in test case.'
                 % (cls.code, 'pywikibot-enter-category-name'))
 
         super(InputTestCase, cls).setUpClass()

-- 
To view, visit https://gerrit.wikimedia.org/r/203963
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6c54f902285101b9c13af4e6b2b75d4237cb3f3b
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to