branch | stable |
changeset 11732 | 386e56ecfb78 |
child 12865 | 4c50552fc9bc |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-ui-color.py Mon Aug 02 10:48:31 2010 -0400 @@ -0,0 +1,11 @@ +#!/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())