/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/plugins/git/tests/test_repository.py

  • Committer: Jelmer Vernooij
  • Date: 2018-07-03 00:15:59 UTC
  • mto: This revision was merged to the branch mainline in revision 7027.
  • Revision ID: jelmer@jelmer.uk-20180703001559-crogxh6en8s4d83b
Fix remaining git tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
205
205
        self.assertFalse(branch.repository.has_signature_for_revision_id(revid))
206
206
        try:
207
207
            breezy.gpg.GPGStrategy = breezy.gpg.LoopbackGPGStrategy
208
 
            conf = config.MemoryStack('''
 
208
            conf = config.MemoryStack(b'''
209
209
create_signatures=always
210
210
''')
211
211
            revid2 = wt.commit(config=conf, message="base", allow_pointless=True)
212
212
            def sign(text):
213
213
                return breezy.gpg.LoopbackGPGStrategy(None).sign(text)
214
 
            self.assertIsInstance(branch.repository.get_signature_text(revid2), str)
 
214
            self.assertIsInstance(branch.repository.get_signature_text(revid2), bytes)
215
215
        finally:
216
216
            breezy.gpg.GPGStrategy = oldstrategy
217
217