diff --git a/.travis/run.sh b/.travis/run.sh index 971ce4896..ab2c7e966 100755 --- a/.travis/run.sh +++ b/.travis/run.sh @@ -2,10 +2,6 @@ set -e set -x -# This is required in order to get UTF-8 output inside of the subprocesses that -# our tests use. -export LC_CTYPE=en_US.UTF-8 - # We want to create the virtual environment here, but not actually run anything tox --notest diff --git a/tox.ini b/tox.ini index b9cd881fb..76ddee28d 100644 --- a/tox.ini +++ b/tox.ini @@ -2,6 +2,10 @@ envlist = docs, packaging, pep8, py3pep8, py26, py27, py32, py33, py34, pypy [testenv] +setenv = + # This is required in order to get UTF-8 output inside of the subprocesses + # that our tests use. + LC_CTYPE = en_US.UTF-8 deps = -r{toxinidir}/dev-requirements.txt commands = py.test --timeout 300 [] install_command = python -m pip install --pre {opts} {packages}