~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_exceptions.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-05-04 19:55:26 UTC
  • mfrom: (5815.2.1 fix-locale)
  • Revision ID: pqm@pqm.ubuntu.com-20110504195526-65o4yhqx8sgn4isv
(jelmer) Set LC_ALL and LANG in
 TestExceptionReporting.test_undecodable_argv. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
        if os.name != "posix":
56
56
            raise tests.TestNotApplicable("Needs system beholden to C locales")
57
57
        out, err = self.run_bzr_subprocess(["\xa0"],
58
 
            env_changes={"LANG": "C"},
 
58
            env_changes={"LANG": "C", "LC_ALL": "C"},
59
59
            universal_newlines=True,
60
60
            retcode=errors.EXIT_ERROR)
61
61
        self.assertContainsRe(err, r"^bzr: ERROR: .*'\\xa0'.* unsupported")