~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Robert Collins
  • Date: 2010-04-08 04:34:03 UTC
  • mfrom: (5138 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5139.
  • Revision ID: robertc@robertcollins.net-20100408043403-56z0d07vdqrx7f3t
Update bugfix for 528114 to trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
        super(TestNonAscii, self).setUp()
41
41
        self._check_can_encode_paths()
42
42
 
43
 
        self.addCleanup(setattr, osutils, "_cached_user_encoding",
44
 
            osutils._cached_user_encoding)
45
 
        osutils._cached_user_encoding = self.encoding
 
43
        self.overrideAttr(osutils, '_cached_user_encoding', self.encoding)
46
44
        email = self.info['committer'] + ' <joe@foo.com>'
47
45
        os.environ['BZR_EMAIL'] = email.encode(osutils.get_user_encoding())
48
46
        self.create_base()