tests/test-ui-color.py
author Martin Geisler <mg@lazybytes.net>
Sun, 13 Mar 2011 12:44:35 +0100
branchstable
changeset 13606 1532ed1e50ca
parent 12865 4c50552fc9bc
child 14516 842a9179132c
permissions -rw-r--r--
transplant: avoid the word "rebase" when we mean "transplant"

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