~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_osutils.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-10-01 07:56:03 UTC
  • mfrom: (3224.5.40 faster-startup)
  • Revision ID: pqm@pqm.ubuntu.com-20081001075603-s9nynw8y85fmrprj
Reduce startup time by a small amount. (Andrew Bennetts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
import sys
25
25
import time
26
26
 
27
 
import bzrlib
28
27
from bzrlib import (
29
28
    errors,
30
29
    osutils,
1357
1356
        uni_val, env_val = probe_unicode_in_user_encoding()
1358
1357
        if uni_val is None:
1359
1358
            raise TestSkipped('Cannot find a unicode character that works in'
1360
 
                              ' encoding %s' % (bzrlib.user_encoding,))
 
1359
                              ' encoding %s' % (osutils.get_user_encoding(),))
1361
1360
 
1362
1361
        old = osutils.set_or_unset_env('BZR_TEST_ENV_VAR', uni_val)
1363
1362
        self.assertEqual(env_val, os.environ.get('BZR_TEST_ENV_VAR'))