~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_ui.py

  • Committer: Patch Queue Manager
  • Date: 2012-12-10 10:18:33 UTC
  • mfrom: (6571.1.2 1086209-lc-all-c)
  • Revision ID: pqm@pqm.ubuntu.com-20121210101833-06scfp3a4w0x0z87
(vila) Fix LC_ALL=C test failures related to utf8 stderr encoding (Vincent
 Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
        ui.stdout = tests.StringIOWrapper()
104
104
        ui.stderr = tests.StringIOWrapper()
105
105
        ui.stderr.encoding = ui.stdout.encoding = ui.stdin.encoding = 'utf8'
106
 
        pb = ui.nested_progress_bar()
107
106
        password = ui.get_password(u'Hello \u1234 %(user)s', user=u'some\u1234')
108
107
        self.assertEqual(u'baz\u1234', password)
109
108
        self.assertEqual(u'Hello \u1234 some\u1234: ',