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

  • Committer: Jelmer Vernooij
  • Date: 2018-07-17 21:20:55 UTC
  • mto: (7045.3.3 python3-r)
  • mto: This revision was merged to the branch mainline in revision 7050.
  • Revision ID: jelmer@jelmer.uk-20180717212055-apkv1s70oo6wpi6o
Fix a few more tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1133
1133
 
1134
1134
    def test_unicode_url(self):
1135
1135
        self.assertRaises(urlutils.InvalidURL, location_to_url,
1136
 
            "http://fo/\xc3\xaf".decode("utf-8"))
 
1136
            b"http://fo/\xc3\xaf".decode("utf-8"))
1137
1137
 
1138
1138
    def test_unicode_path(self):
1139
1139
        path, url = self.get_base_location()
1140
 
        location = path + "\xc3\xaf".decode("utf-8")
 
1140
        location = path + b"\xc3\xaf".decode("utf-8")
1141
1141
        url += '%C3%AF'
1142
1142
        self.assertEqual(url, location_to_url(location))
1143
1143