~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/textui.py

  • Committer: Robert Collins
  • Date: 2005-08-23 06:52:09 UTC
  • mto: (974.1.50) (1185.1.10) (1092.3.1)
  • mto: This revision was merged to the branch mainline in revision 1139.
  • Revision ID: robertc@robertcollins.net-20050823065209-81cd5962c401751b
move io redirection into each test case from the global runner

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
def show_status(state, kind, name):
21
21
    if kind == 'directory':
 
22
        # use this even on windows?
22
23
        kind_ch = '/'
 
24
    elif kind == 'symlink':
 
25
        kind_ch = '->'
23
26
    else:
24
 
        assert kind == 'file'
 
27
        assert kind == 'file', ("can't handle file of type %r" % kind)
25
28
        kind_ch = ''
26
29
 
27
30
    assert len(state) == 1