/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: 2017-05-22 00:56:52 UTC
  • mfrom: (6621.2.26 py3_pokes)
  • Revision ID: jelmer@jelmer.uk-20170522005652-yjahcr9hwmjkno7n
Merge Python3 porting work ('py3 pokes')

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 cStringIO import StringIO
20
19
import platform
21
20
import re
22
21
 
23
 
from breezy import (
 
22
from .. import (
24
23
    tests,
25
24
    version,
26
25
    workingtree,
27
26
    )
28
 
from breezy.tests.scenarios import load_tests_apply_scenarios
 
27
from ..sixish import (
 
28
    BytesIO,
 
29
    )
 
30
from .scenarios import load_tests_apply_scenarios
29
31
 
30
32
 
31
33
load_tests = load_tests_apply_scenarios
50
52
 
51
53
    def test_python_binary_path(self):
52
54
        self.permit_source_tree_branch_repo()
53
 
        sio = StringIO()
 
55
        sio = BytesIO()
54
56
        version.show_version(show_config=False, show_copyright=False,
55
57
            to_file=sio)
56
58
        out = sio.getvalue()