tests/test-ui-color.py
author Gilles Moris <gilles.moris@free.fr>
Sun, 20 Feb 2011 18:06:05 +0100
branchstable
changeset 13449 8b1125eb361e
parent 12865 4c50552fc9bc
child 14516 842a9179132c
permissions -rw-r--r--
test-push-http: use killdaemons.py instead of kill to avoid test unreliability

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