/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/per_workingtree/test_smart_add.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 that we can use smart_add on all Tree implementations."""
18
18
 
19
 
from cStringIO import StringIO
20
19
import os
21
20
import sys
22
21
 
23
 
from breezy import (
 
22
from ... import (
24
23
    errors,
25
24
    ignores,
26
25
    osutils,
27
26
    tests,
28
27
    trace,
29
28
    )
30
 
from breezy.tests import (
 
29
from ...sixish import (
 
30
    BytesIO,
 
31
    )
 
32
from .. import (
31
33
    features,
32
34
    per_workingtree,
33
35
    test_smart_add,
251
253
        self.assertFalse(list(tree.iter_changes(tree.basis_tree())))
252
254
 
253
255
    def test_custom_ids(self):
254
 
        sio = StringIO()
 
256
        sio = BytesIO()
255
257
        action = test_smart_add.AddCustomIDAction(to_file=sio,
256
258
                                                  should_print=True)
257
259
        self.build_tree(['file1', 'dir1/', 'dir1/file2'])