/breezy/unstable

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/unstable

« back to all changes in this revision

Viewing changes to breezy/tests/per_workingtree/test_smart_add.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-24 01:39:33 UTC
  • mfrom: (3815.3776.6)
  • Revision ID: jelmer@jelmer.uk-20170524013933-ir4y4tqtrsiz2ka2
New upstream snapshot.

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 bzrlib import (
 
22
from ... import (
24
23
    errors,
25
24
    ignores,
26
25
    osutils,
27
26
    tests,
28
27
    trace,
29
28
    )
30
 
from bzrlib.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'])