tests/test-ui-color.py
author Mads Kiilerich <mads@kiilerich.com>
Thu, 05 May 2011 01:57:13 +0200
changeset 14187 9bbaafddfa90
parent 12865 4c50552fc9bc
child 14516 842a9179132c
permissions -rw-r--r--
tests: test subrepos with ssh urls

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