tests/test-ui-color.py
author Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
Tue, 22 Mar 2011 07:38:32 +0100
changeset 13721 3458c15ab2f0
parent 12865 4c50552fc9bc
child 14516 842a9179132c
permissions -rw-r--r--
wireproto: fix handling of '*' args for HTTP and SSH

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