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

  • Committer: Jelmer Vernooij
  • Date: 2018-02-17 00:06:35 UTC
  • mto: (6855.3.2 bees)
  • mto: This revision was merged to the branch mainline in revision 6923.
  • Revision ID: jelmer@jelmer.uk-20180217000635-p82hqmv6yt9t3cbl
Format strings are bytes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
        self.requireFeature(features.UnicodeFilenameFeature)
107
107
 
108
108
        filename = u'hell\u00d8'
109
 
        self.build_tree_contents([(filename, 'contents of hello')])
 
109
        self.build_tree_contents([(filename, b'contents of hello')])
110
110
        self.assertPathExists(filename)
111
111
 
112
112
 
235
235
        from .per_repository import formats_to_scenarios
236
236
        formats = [("(c)", remote.RemoteRepositoryFormat()),
237
237
                   ("(d)", repository.format_registry.get(
238
 
                    'Bazaar repository format 2a (needs bzr 1.16 or later)\n'))]
 
238
                    b'Bazaar repository format 2a (needs bzr 1.16 or later)\n'))]
239
239
        no_vfs_scenarios = formats_to_scenarios(formats, "server", "readonly",
240
240
            None)
241
241
        vfs_scenarios = formats_to_scenarios(formats, "server", "readonly",
2172
2172
 
2173
2173
    def test_load_list(self):
2174
2174
        # Provide a list with one test - this test.
2175
 
        test_id_line = '%s\n' % self.id()
 
2175
        test_id_line = b'%s\n' % self.id()
2176
2176
        self.build_tree_contents([('test.list', test_id_line)])
2177
2177
        # And generate a list of the tests in  the suite.
2178
2178
        stream = self.run_selftest(load_list='test.list', list_only=True)