/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/test_version.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:
16
16
 
17
17
"""Tests for versioning of breezy."""
18
18
 
 
19
from io import StringIO
19
20
import platform
20
21
import re
21
22
 
24
25
    version,
25
26
    workingtree,
26
27
    )
27
 
from ..sixish import (
28
 
    PY3,
29
 
    StringIO,
30
 
    )
31
28
from .scenarios import load_tests_apply_scenarios
32
29
 
33
30
 
78
75
        version.show_version(show_config=False, show_copyright=False,
79
76
                             to_file=out)
80
77
        expected = r'(?m)^  Platform: %s' % self._platform
81
 
        if PY3:
82
 
            expected = expected.encode('utf-8')
 
78
        expected = expected.encode('utf-8')
83
79
        self.assertContainsRe(out.getvalue(), expected)