tests/test-status-color.t
branchstable
changeset 21227 75aaae8ad660
parent 20387 16c643f3a1a5
child 22463 1c4ae0f6a30f
--- 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 ..