/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 bzrlib/tests/test_bad_files.py

  • Committer: Richard Wilbur
  • Date: 2016-02-04 19:07:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6618.
  • Revision ID: richard.wilbur@gmail.com-20160204190728-p0zvfii6zase0fw7
Update COPYING.txt from the original http://www.gnu.org/licenses/gpl-2.0.txt  (Only differences were in whitespace.)  Thanks to Petr Stodulka for pointing out the discrepancy.

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