[pygobject] Run tests with LC_MESSAGES="C"
- From: Martin Pitt <martinpitt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Run tests with LC_MESSAGES="C"
- Date: Tue, 1 Mar 2011 22:27:48 +0000 (UTC)
commit 6e7606ee8830f6f51b777f41f6df2f6ea1784e89
Author: Martin Pitt <martin pitt ubuntu com>
Date: Tue Mar 1 23:26:07 2011 +0100
Run tests with LC_MESSAGES="C"
Some tests, such as tests/test_gdbus.py check parts of error messages or other
visible strings. Ensure that these do not get translated in the test suite.
tests/runtests.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tests/runtests.py b/tests/runtests.py
index cfd7578..2a8ecf4 100755
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -11,6 +11,8 @@ if '--help' in sys.argv:
print("Usage: ./runtests.py <testfiles>")
sys.exit(0)
+# force untranslated messages, as we check for them in some tests
+os.environ['LC_MESSAGES'] = 'C'
# Load tests.
if 'TEST_NAMES' in os.environ:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]