/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-02-07 02:14:30 UTC
  • mto: This revision was merged to the branch mainline in revision 7492.
  • Revision ID: jelmer@jelmer.uk-20200207021430-m49iq3x4x8xlib6x
Drop python2 support.

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
27
26
 
28
27
from ..test_bedding import override_whoami
29
28
 
35
34
        self.assertEqual('', err)
36
35
        lines = out.splitlines()
37
36
        self.assertLength(1, lines)
38
 
        if PY3 and isinstance(expected, bytes):
 
37
        if isinstance(expected, bytes):
39
38
            expected = expected.decode(kwargs.get('encoding', 'ascii'))
40
39
        self.assertEqual(expected, lines[0].rstrip())
41
40