/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-02-14 03:16:54 UTC
  • mfrom: (7479.2.3 no-more-python2)
  • Revision ID: breezy.the.bot@gmail.com-20200214031654-bp1xtv2jr9nmhto3
Drop python2 support.

Merged from https://code.launchpad.net/~jelmer/brz/no-more-python2/+merge/378694

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