tests: fix checks when the locale is not the default one
authorAndoni Morales Alastruey <amorales@flumotion.com>
Fri, 21 Jan 2011 17:13:57 +0000 (18:13 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 25 Jan 2011 13:55:48 +0000 (13:55 +0000)
Some tests (test_pbutils.py) checks against strings for the
english locale, so we should force it before running any test

https://bugzilla.gnome.org/show_bug.cgi?id=640207

testsuite/runtests.py

index f3e9b1f..592a4e3 100644 (file)
@@ -28,6 +28,8 @@ import unittest
 
 SKIP_FILES = ['common', 'runtests']
 
+os.environ['LC_MESSAGES'] = 'C'
+
 def gettestnames(which):
     if not which:
         dir = os.path.split(os.path.abspath(__file__))[0]