Mercurial > hg
view tests/test-ui-color.py @ 12028:21984c1c83d4 stable
test-dispatch: drop test for missing working directory
hstuart reported problems when the local Python has been configured to do stuff
and crash before reaching the expected error handler.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Mon, 23 Aug 2010 22:32:36 +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())