/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/per_interrepository/test_fetch.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-07-03 03:20:44 UTC
  • mfrom: (7018.3.10 git-fixes)
  • Revision ID: breezy.the.bot@gmail.com-20180703032044-t5a5w5y0tmzrbezc
Port a few more bits of the git plugin to python 3.

Merged from https://code.launchpad.net/~jelmer/brz/git-fixes2/+merge/348803

Show diffs side-by-side

added added

removed removed

Lines of Context:
142
142
        to_repo.lock_read()
143
143
        self.addCleanup(to_repo.unlock)
144
144
        self.assertEqual(b'contents',
145
 
            to_repo.texts.get_record_stream([(b'foo', revid)],
146
 
            'unordered', True).next().get_bytes_as('fulltext'))
 
145
            next(to_repo.texts.get_record_stream([(b'foo', revid)],
 
146
            'unordered', True)).get_bytes_as('fulltext'))
147
147
 
148
148
    def test_fetch_from_stacked_smart(self):
149
149
        self.setup_smart_server_with_call_log()
564
564
        self.addCleanup(to_repo.unlock)
565
565
        stream = to_repo.inventories.get_record_stream([(revid,)],
566
566
                                                       'unordered', True)
567
 
        bytes = stream.next().get_bytes_as('fulltext')
 
567
        bytes = next(stream).get_bytes_as('fulltext')
568
568
        computed_inv_sha1 = osutils.sha_string(bytes)
569
569
        self.assertEqual(computed_inv_sha1, recorded_inv_sha1)
570
570