Changeset - 5c549b26231a
[Not reviewed]
default
0 1 0
domruf - 10 years ago 2016-05-02 22:54:09
dominikruf@gmail.com
tests: set LANG and LANGUAGE - vcs tests expect messages to be in english

Some systems work fine without - especially Windows seems to need it.
1 file changed with 5 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/other/manual_test_vcs_operations.py
Show inline comments
 
@@ -32,6 +32,7 @@ Original author and date, and relevant c
 

	
 
"""
 

	
 
import os
 
import re
 
import tempfile
 
import time
 
@@ -63,7 +64,10 @@ class Command(object):
 
        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)
0 comments (0 inline, 0 general)