tests/test-ui-color.py
branchstable
changeset 11732 386e56ecfb78
child 12865 4c50552fc9bc
equal deleted inserted replaced
11731:87dcf758309d 11732:386e56ecfb78
       
     1 #!/usr/bin/env python
       
     2 
       
     3 from hgext import color
       
     4 
       
     5 # ensure errors aren't buffered
       
     6 testui = color.colorui()
       
     7 testui.pushbuffer()
       
     8 testui.write('buffered\n')
       
     9 testui.warn('warning\n')
       
    10 testui.write_err('error\n')
       
    11 print repr(testui.popbuffer())