jenkins-bot merged this change.

View Change

Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
[bugfix] Enable langs which aren't used by wikimedia already

- Also use a set for lookup instead of a list

Bug: T224387
Change-Id: I97b1c872e05693916a63b848dfd858ab3a37ed7b
M tests/
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/ b/tests/
index f461ee3..52bb522 100644
--- a/tests/
+++ b/tests/
@@ -103,7 +103,9 @@
def test_valid_sites(self):
"""Test whether language key has a corresponding site."""
codes =
- languages = [pywikibot.Site(code, for code in codes]
+ languages = {pywikibot.Site(code, for code in codes}
+ # langs used by foreign wikis
+ languages.update(('pt-br', 'zh-tw'))
for package in PACKAGES:
keys = i18n.twget_keys(package)
for key in keys:

To view, visit change 512623. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I97b1c872e05693916a63b848dfd858ab3a37ed7b
Gerrit-Change-Number: 512623
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <>
Gerrit-Reviewer: Dvorapa <>
Gerrit-Reviewer: John Vandenberg <>
Gerrit-Reviewer: jenkins-bot (75)