/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_bad_files.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:
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 breezy import (
 
22
from .. import (
24
23
    errors,
25
24
    )
26
 
from breezy.status import show_tree_status
27
 
from breezy.tests import TestCaseWithTransport
28
 
from breezy.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())