Page MenuHomePhabricator

test_pagegen_i18n_input failing: setlocale: LC_ALL: cannot change locale (arz): No such file or directory
Closed, ResolvedPublic

Description

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'

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

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

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

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

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 203963 merged by jenkins-bot:
Change i18n.input test lang from arz to nn

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

jayvdb claimed this task.

Change 418713 had a related patch set uploaded (by Dalba; owner: Dalba):
[pywikibot/core@master] tests/utils.py: Do not modify system language settings

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

Change 418713 merged by jenkins-bot:
[pywikibot/core@master] tests/utils.py: Do not modify system language settings

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