Mercurial > kallithea
changeset 5967:5c549b26231a
tests: set LANG and LANGUAGE - vcs tests expect messages to be in english
Some systems work fine without - especially Windows seems to need it.
author | domruf <dominikruf@gmail.com> |
---|---|
date | Mon, 02 May 2016 22:54:09 +0200 |
parents | 04c82eb326fb |
children | 7db1bcf1d95b |
files | kallithea/tests/other/manual_test_vcs_operations.py |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/tests/other/manual_test_vcs_operations.py Mon May 02 23:38:23 2016 +0200 +++ b/kallithea/tests/other/manual_test_vcs_operations.py Mon May 02 22:54:09 2016 +0200 @@ -32,6 +32,7 @@ """ +import os import re import tempfile import time @@ -63,7 +64,10 @@ command = cmd + ' ' + ' '.join(args) if DEBUG: print '*** CMD %s ***' % command - p = Popen(command, shell=True, stdout=PIPE, stderr=PIPE, cwd=self.cwd) + testenv = dict(os.environ) + testenv['LANG'] = 'en_US.UTF-8' + testenv['LANGUAGE'] = 'en_US:en' + p = Popen(command, shell=True, stdout=PIPE, stderr=PIPE, cwd=self.cwd, env=testenv) stdout, stderr = p.communicate() if DEBUG: print 'stdout:', repr(stdout)