tests/test-ui-color.py
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
Tue, 26 Oct 2010 12:18:39 +0200
branchstable
changeset 12865 4c50552fc9bc
parent 11732 386e56ecfb78
child 14516 842a9179132c
permissions -rw-r--r--
*: kill all unnecessary shebangs.

from hgext import color

# ensure errors aren't buffered
testui = color.colorui()
testui.pushbuffer()
testui.write('buffered\n')
testui.warn('warning\n')
testui.write_err('error\n')
print repr(testui.popbuffer())