tests/test-ui-color.py
author Martin Geisler <mg@lazybytes.net>
Wed, 16 Mar 2011 17:42:42 +0100
branchstable
changeset 13686 c97ad3bd0b8d
parent 12865 4c50552fc9bc
child 14516 842a9179132c
permissions -rw-r--r--
i18n-da: synchronize with e9628665b670

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