--- a/tests/test-status-color.t Sat May 03 10:33:54 2014 +0200
+++ b/tests/test-status-color.t Sat May 03 03:29:30 2014 +0200
@@ -319,4 +319,17 @@
\x1b[0;31;1mU a\x1b[0m (esc)
\x1b[0;32;1mR b\x1b[0m (esc)
+color coding of error message with current availability of curses
+
+ $ hg unknowncommand > /dev/null
+ hg: unknown command 'unknowncommand'
+ [255]
+
+color coding of error message without curses
+
+ $ echo 'raise ImportError' > curses.py
+ $ PYTHONPATH=`pwd`:$PYTHONPATH hg unknowncommand > /dev/null
+ hg: unknown command 'unknowncommand'
+ [255]
+
$ cd ..