/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: 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:
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)