tests/test-ui-color.py
author Patrick Mezard <pmezard@gmail.com>
Thu, 19 May 2011 22:44:01 +0200
changeset 14384 9d59c596eb9e
parent 12865 4c50552fc9bc
child 14516 842a9179132c
permissions -rw-r--r--
patch: construct and parse binary hunks at the same time

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