tests/test-ui-color.py
author Matt Mackall <mpm@selenic.com>
Thu, 10 Feb 2011 13:46:28 -0600
changeset 13361 5b4252364ff9
parent 12865 4c50552fc9bc
child 14516 842a9179132c
permissions -rw-r--r--
bookmarks: move color style to color

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