tests/test-ui-color.py
author Matt Mackall <mpm@selenic.com>
Wed, 27 Oct 2010 16:54:46 -0500
branchstable
changeset 12873 e1855dee28c1
parent 12865 4c50552fc9bc
child 14516 842a9179132c
permissions -rw-r--r--
merge with i18n

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