~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: John Arbash Meinel
  • Date: 2010-05-11 10:45:26 UTC
  • mto: This revision was merged to the branch mainline in revision 5225.
  • Revision ID: john@arbash-meinel.com-20100511104526-zxnstcxta22hzw2n
Implement a compiled extension for parsing the text key out of a CHKInventory value.

Related to bug #562666. This seems to shave 5-10% out of the time spent doing a complete
branch of bzr.dev/launchpad/etc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Test that bzr handles locales in a reasonable way"""
18
18
 
 
19
import os
19
20
import sys
20
21
 
21
22
from bzrlib import (
43
44
 
44
45
    def test_log_C(self):
45
46
        self.disable_missing_extensions_warning()
46
 
        # C is not necessarily the default locale, so set both LANG and LC_ALL
47
 
        # explicitly because LC_ALL is preferred on (some?) Linux systems but
48
 
        # only LANG is respected on Windows.
49
47
        out, err = self.run_bzr_subprocess(
50
48
            '--no-aliases --no-plugins log -q --log-format=long tree',
51
 
               env_changes={'LANG': 'C', 'BZR_PROGRESS_BAR':'none',
52
 
                            'LC_ALL': 'C', 'LC_CTYPE':None, 'LANGUAGE':None})
 
49
               env_changes={'LANG':'C', 'BZR_PROGRESS_BAR':'none',
 
50
                            'LC_ALL':None, 'LC_CTYPE':None, 'LANGUAGE':None})
53
51
        self.assertEqual('', err)
54
52
        self.assertEqualDiff("""\
55
53
------------------------------------------------------------