Rev 4624: Make TestLocale.test_log_BOGUS more robust in http://bazaar.launchpad.net/~vila/bzr/integration
Vincent Ladeuil
v.ladeuil+lp at free.fr
Tue Aug 18 08:20:13 BST 2009
At http://bazaar.launchpad.net/~vila/bzr/integration
------------------------------------------------------------
revno: 4624 [merge]
revision-id: v.ladeuil+lp at free.fr-20090818072002-fwba0yfpyhk04mkn
parent: pqm at pqm.ubuntu.com-20090818034251-w2biu3woo8y7bcf8
parent: v.ladeuil+lp at free.fr-20090817221649-o7hmnfiip0jq16mv
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: integration
timestamp: Tue 2009-08-18 09:20:02 +0200
message:
Make TestLocale.test_log_BOGUS more robust
modified:
NEWS NEWS-20050323055033-4e00b5db738777ff
bzrlib/tests/blackbox/test_locale.py test_lang.py-20060824204205-80v50j25qkuop7yn-1
-------------- next part --------------
=== modified file 'NEWS'
--- a/NEWS 2009-08-18 01:38:56 +0000
+++ b/NEWS 2009-08-18 07:20:02 +0000
@@ -9,6 +9,12 @@
In Development
##############
+Bug Fixes
+*********
+
+* Fix a test failure on karmic by making a locale test more robust.
+ (Vincent Ladeuil, #413514)
+
Improvements
************
=== modified file 'bzrlib/tests/blackbox/test_locale.py'
--- a/bzrlib/tests/blackbox/test_locale.py 2009-03-23 14:59:43 +0000
+++ b/bzrlib/tests/blackbox/test_locale.py 2009-08-17 22:16:49 +0000
@@ -61,21 +61,7 @@
'--no-aliases --no-plugins log -q --log-format=long tree',
env_changes={'LANG':'BOGUS', 'BZR_PROGRESS_BAR':'none',
'LC_ALL':None, 'LC_CTYPE':None, 'LANGUAGE':None})
- # XXX: This depends on the exact formatting of a locale.Error
- # as the first part of the string. It may be a little tempermental
- self.assertEqualDiff("""\
-bzr: warning: unsupported locale setting
- bzr could not set the application locale.
- Although this should be no problem for bzr itself,
- it might cause problems with some plugins.
- To investigate the issue, look at the output
- of the locale(1p) tool available on POSIX systems.
-bzr: warning: unsupported locale setting
- Could not determine what text encoding to use.
- This error usually means your Python interpreter
- doesn't support the locale set by $LANG (BOGUS)
- Continuing with ascii encoding.
-""", err)
+ self.assertStartsWith(err, 'bzr: warning: unsupported locale setting')
self.assertEqualDiff("""\
------------------------------------------------------------
revno: 1
More information about the bazaar-commits
mailing list