view tests/test-ui-color.py @ 12181:045c9e8db0d8

tests: fix test output for test-hgweb-no* tests
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Wed, 08 Sep 2010 15:19:35 +0200 (2010-09-08)
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())