view tests/test-ui-color.py @ 12586:b96de59a2c39

tests: fix 05210e955bef merge error in test-git-import.t
author Adrian Buehlmann <adrian@cadifra.com>
date Tue, 28 Sep 2010 19:29:14 +0200
parents 386e56ecfb78
children 4c50552fc9bc
line wrap: on
line source

#!/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())