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:
John L. Villalovos 2015-09-30 09:39:46 -07:00
parent 0bea537aa3
commit 3e22cc4ea0
1 changed files with 1 additions and 0 deletions

View File

@ -11,6 +11,7 @@ install_command =
setenv = VIRTUAL_ENV={envdir}
PYTHONDONTWRITEBYTECODE = 1
LANGUAGE=en_US
LC_ALL=en_US.UTF-8
TESTS_DIR=./ironic/tests/unit/
deps = -r{toxinidir}/test-requirements.txt
commands = ostestr {posargs}