/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_read_bundle.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
"""Test read_bundle works properly across various transports."""
18
18
 
19
 
import cStringIO
20
 
 
21
19
import breezy.bundle
22
 
from breezy.bundle.serializer import write_bundle
 
20
from ..bundle.serializer import write_bundle
23
21
import breezy.bzrdir
24
 
import breezy.errors as errors
25
 
from breezy import tests
26
 
from breezy.tests.test_transport import TestTransportImplementation
27
 
from breezy.tests.per_transport import transport_test_permutations
 
22
from .. import errors
 
23
from ..sixish import (
 
24
    BytesIO,
 
25
    )
 
26
from .. import tests
 
27
from .test_transport import TestTransportImplementation
 
28
from .per_transport import transport_test_permutations
28
29
import breezy.transport
29
30
import breezy.urlutils
30
 
from breezy.tests.scenarios import load_tests_apply_scenarios
 
31
from .scenarios import load_tests_apply_scenarios
31
32
 
32
33
 
33
34
load_tests = load_tests_apply_scenarios
46
47
    wt.add(['a', 'subdir/'])
47
48
    wt.commit('new project', rev_id='commit-1')
48
49
 
49
 
    out = cStringIO.StringIO()
 
50
    out = BytesIO()
50
51
    rev_ids = write_bundle(wt.branch.repository,
51
52
                           wt.get_parent_ids()[0], 'null:', out)
52
53
    out.seek(0)