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

  • Committer: Jelmer Vernooij
  • Date: 2020-07-05 12:50:01 UTC
  • mfrom: (7490.40.46 work)
  • mto: (7490.40.48 work)
  • mto: This revision was merged to the branch mainline in revision 7519.
  • Revision ID: jelmer@jelmer.uk-20200705125001-7s3vo0p55szbbws7
Merge lp:brz/3.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
    errors,
24
24
    tests,
25
25
    )
 
26
from breezy.sixish import PY3
26
27
 
27
28
from ..test_bedding import override_whoami
28
29
 
34
35
        self.assertEqual('', err)
35
36
        lines = out.splitlines()
36
37
        self.assertLength(1, lines)
37
 
        if isinstance(expected, bytes):
 
38
        if PY3 and isinstance(expected, bytes):
38
39
            expected = expected.decode(kwargs.get('encoding', 'ascii'))
39
40
        self.assertEqual(expected, lines[0].rstrip())
40
41