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

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-08-01 02:49:14 UTC
  • mfrom: (7045.4.39 python3-u)
  • Revision ID: breezy.the.bot@gmail.com-20180801024914-vib3fpfkn36585ie
Fix some more tests on Python 3.

Merged from https://code.launchpad.net/~jelmer/brz/python3-u/+merge/351386

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
        tree = MemoryTree.create_on_branch(branch)
49
49
        tree.lock_read()
50
50
        self.assertEqual([rev_id], tree.get_parent_ids())
51
 
        self.assertEqual('contents of foo\n',
52
 
            tree.get_file('foo').read())
 
51
        with tree.get_file('foo') as f:
 
52
            self.assertEqual(b'contents of foo\n', f.read())
53
53
        tree.unlock()
54
54
 
55
55
    def test_get_root_id(self):