Python 3.4 unit tests fail with LANG=C
After the move to os-testr the 'tox -epy34' unit tests will fail when LANG=C is set in the environment. Set LC_ALL=en_US.UTF-8 in the testenv to solve the issue. This is in-line with our curent method of running the unit tests in US English so that logging, messages, and exceptions can be validated by unit tests. Closes-Bug: #1501415 Change-Id: Ifefdd67c9e5edf22f3b7a1fce56f21c788ac9ead
This commit is contained in:
parent
0bea537aa3
commit
3e22cc4ea0
1
tox.ini
1
tox.ini
@ -11,6 +11,7 @@ install_command =
|
|||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
PYTHONDONTWRITEBYTECODE = 1
|
PYTHONDONTWRITEBYTECODE = 1
|
||||||
LANGUAGE=en_US
|
LANGUAGE=en_US
|
||||||
|
LC_ALL=en_US.UTF-8
|
||||||
TESTS_DIR=./ironic/tests/unit/
|
TESTS_DIR=./ironic/tests/unit/
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
commands = ostestr {posargs}
|
commands = ostestr {posargs}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user