/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/test_bad_files.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:
17
17
 
18
18
"""Tests being able to ignore bad filetypes."""
19
19
 
20
 
from cStringIO import StringIO
21
20
import os
22
21
 
23
 
from bzrlib import (
 
22
from .. import (
24
23
    errors,
25
24
    )
26
 
from bzrlib.status import show_tree_status
27
 
from bzrlib.tests import TestCaseWithTransport
28
 
from bzrlib.tests.features import (
 
25
from ..sixish import (
 
26
    BytesIO,
 
27
    )
 
28
from ..status import show_tree_status
 
29
from . import TestCaseWithTransport
 
30
from .features import (
29
31
    OsFifoFeature,
30
32
    )
31
33
 
32
34
 
33
35
def verify_status(tester, tree, value):
34
36
    """Verify the output of show_tree_status"""
35
 
    tof = StringIO()
 
37
    tof = BytesIO()
36
38
    show_tree_status(tree, to_file=tof)
37
39
    tof.seek(0)
38
40
    tester.assertEqual(value, tof.readlines())