~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: 2006-08-25 15:01:52 UTC
  • mto: This revision was merged to the branch mainline in revision 1962.
  • Revision ID: john@arbash-meinel.com-20060825150152-006e591e9cfb120e
Change the name of the test classes (test_lang => test_locale), move the function into osutils.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
 
"""Test that bzr handles LANG in a reasonable way"""
 
17
"""Test that bzr handles locales in a reasonable way"""
18
18
 
19
19
import os
 
20
import sys
20
21
 
21
22
from bzrlib.tests import TestCaseWithTransport
22
23
 
23
24
 
24
 
class TestLANG(TestCaseWithTransport):
 
25
class TestLocale(TestCaseWithTransport):
25
26
 
26
27
    def setUp(self):
27
 
        super(TestLANG, self).setUp()
 
28
        super(TestLocale, self).setUp()
28
29
 
 
30
        if sys.platform in ('win32',):
 
31
            raise TestSkipped('Windows does not respond to the LANG'
 
32
                              ' env variable')
29
33
        orig_progress = os.environ.get('BZR_PROGRESS_BAR')
30
34
        orig_lang = os.environ.get('LANG')
31
35