/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/test_osutils_encodings.py

  • Committer: Jelmer Vernooij
  • Date: 2019-03-04 00:16:27 UTC
  • mfrom: (7293 work)
  • mto: This revision was merged to the branch mainline in revision 7318.
  • Revision ID: jelmer@jelmer.uk-20190304001627-v6u7o6pf97tukhek
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
172
172
 
173
173
        # check stderr
174
174
        self.assertEqual('brz: warning: unknown terminal encoding cp-unknown.\n'
175
 
                          '  Using encoding latin-1 instead.\n',
176
 
                          sys.stderr.getvalue())
 
175
                         '  Using encoding latin-1 instead.\n',
 
176
                         sys.stderr.getvalue())
177
177
 
178
178
 
179
179
class TestUserEncoding(TestCase):
195
195
    def test_get_user_encoding(self):
196
196
        self._encoding = 'user_encoding'
197
197
        fake_codec.add('user_encoding')
198
 
        self.assertEqual('iso8859-1', # fake_codec maps to latin-1
199
 
                          osutils.get_user_encoding())
 
198
        self.assertEqual('iso8859-1',  # fake_codec maps to latin-1
 
199
                         osutils.get_user_encoding())
200
200
        self.assertEqual('', sys.stderr.getvalue())
201
201
 
202
202
    def test_user_cp0(self):