From 3e22cc4ea0de9960b2892c4f7546681c02a504ff Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" <john.l.villalovos@intel.com> Date: Wed, 30 Sep 2015 09:39:46 -0700 Subject: [PATCH] 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 --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index 821bcc989e..465ed860f3 100644 --- a/tox.ini +++ b/tox.ini @@ -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}