tests/test-ui-color.py
author Martin Geisler <mg@aragost.com>
Fri, 06 May 2011 10:02:46 +0200
changeset 14215 e5a59d31bb04
parent 12865 4c50552fc9bc
child 14516 842a9179132c
permissions -rw-r--r--
hbisect: use real Booleans instead of 0/1

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())