/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_rio.py

  • Committer: Jelmer Vernooij
  • Date: 2020-06-28 21:33:00 UTC
  • mto: (7490.40.36 work)
  • mto: This revision was merged to the branch mainline in revision 7519.
  • Revision ID: jelmer@jelmer.uk-20200628213300-3rj3tiblmtq4wofe
Fix tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
331
331
    def test_rio_surrogateescape(self):
332
332
        raw_bytes = b'\xcb'
333
333
        self.assertRaises(UnicodeDecodeError, raw_bytes.decode, 'utf-8')
334
 
        uni_data = raw_bytes.decode('utf-8', 'surrogateescape')
 
334
        try:
 
335
            uni_data = raw_bytes.decode('utf-8', 'surrogateescape')
 
336
        except LookupError:
 
337
            self.skipTest('surrogateescape is not available on Python < 3')
335
338
        s = Stanza(foo=uni_data)
336
339
        self.assertEqual(s.get('foo'), uni_data)
337
340
        raw_lines = s.to_lines()