tests/test-ui-color.py
author Matt Mackall <mpm@selenic.com>
Wed, 01 Jun 2011 16:32:48 -0500
branchstable
changeset 14508 07722bb8a08c
parent 12865 4c50552fc9bc
child 14516 842a9179132c
permissions -rw-r--r--
Added signature for changeset 733af5d9f6b2

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