~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_ui.py

  • Committer: Vincent Ladeuil
  • Date: 2012-12-04 14:21:42 UTC
  • mto: This revision was merged to the branch mainline in revision 6572.
  • Revision ID: v.ladeuil+lp@free.fr-20121204142142-mx8v8k2o5k3yi1ex
Fix LC_ALL=C test failures related to utf8 stderr encoding

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: ',