tests/test-ui-color.py
author Pradeepkumar Gayam <in3xes@gmail.com>
Wed, 18 Aug 2010 06:02:08 +0530
changeset 11982 56d9b73487ff
parent 11732 386e56ecfb78
child 12865 4c50552fc9bc
permissions -rw-r--r--
tests: unify test-merge9

#!/usr/bin/env python

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