FAIL: test_pagegen_i18n_input (tests.i18n_tests.InputTestCase) Test i18n.input via . ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/i18n_tests.py", line 380, in test_pagegen_i18n_input self.assertIn('Please enter the category name:', result['stderr']) AssertionError: u'Please enter the category name:' not found in u'sh: warning: setlocale: LC_ALL: cannot change locale (arz): No such file or directory\n'
Description
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
tests/utils.py: Do not modify system language settings | pywikibot/core | master | +9 -183 | |
Change i18n.input test lang from arz to nn | pywikibot/core | master | +185 -11 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | jayvdb | T128991 test_pagegen_i18n_input failing: setlocale: LC_ALL: cannot change locale (arz): No such file or directory | |||
Resolved | jayvdb | T129001 listpages -cat throws exception |
Event Timeline
Possibly related: T95139.
But I strongly suspect that this will fix the problem: https://gerrit.wikimedia.org/r/#/c/203963/ . I'm rebasing it and re-testing.
Change 203963 had a related patch set uploaded (by John Vandenberg):
Dynamically determine site for i18n.input test
Note this problem was first encountered with https://travis-ci.org/wikimedia/pywikibot-core/jobs/58265112#L2632 , after d4f4a3cfc0 was merged, which needed to be reverted in a0a416b5a .
Change 203963 had a related patch set uploaded (by John Vandenberg):
Dynamically determine site for i18n.input test
Just noting that https://gerrit.wikimedia.org/r/#/c/203963/15 contains a dynamic algorithm for determining the lang & locale for this test. It isnt actually needed for this bug fix, so I am removing it to make the bug fix cleaner and easier to review.
Change 418713 had a related patch set uploaded (by Dalba; owner: Dalba):
[pywikibot/core@master] tests/utils.py: Do not modify system language settings
Change 418713 merged by jenkins-bot:
[pywikibot/core@master] tests/utils.py: Do not modify system language settings