/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/blackbox/test_testament.py

  • Committer: Jelmer Vernooij
  • Date: 2018-07-27 01:52:24 UTC
  • mto: This revision was merged to the branch mainline in revision 7057.
  • Revision ID: jelmer@jelmer.uk-20180727015224-yh6yjb0fvb9302dn
Fix tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
import re
20
20
 
 
21
from breezy.sixish import PY3
21
22
from breezy.tests.test_testament import (
22
23
    osutils,
23
24
    REV_1_SHORT,
58
59
        sha1 = sha1_re.search(short_out).group('sha1')
59
60
        self.assertEqual(
60
61
                sha1.encode('ascii'),
61
 
                osutils.sha_string(long_out.encode('utf-8')))
 
62
                osutils.sha_string(long_out.encode('utf-8') if PY3 else long_out))