[issue3135] test-status-color.t fails if python is compiled without curses support

Dirkjan Ochtman bugs at mercurial.selenic.com
Mon Dec 5 07:53:12 CST 2011


New submission from Dirkjan Ochtman <dirkjan at ochtman.nl>:

The result here is that coloring status output works fine on this box, but
the test fails.

---
/var/tmp/portage/dev-vcs/mercurial-2.0/work/mercurial-2.0/tests/test-status-color.t
+++
/var/tmp/portage/dev-vcs/mercurial-2.0/work/mercurial-2.0/tests/test-status-color.t.err
@@ -170,15 +170,16 @@
   $ mkdir $TESTTMP/terminfo
   $ TERMINFO=$TESTTMP/terminfo tic $TESTDIR/hgterm.ti
   $ TERM=hgterm TERMINFO=$TESTTMP/terminfo hg status --config
color.mode=terminfo --color=always -A
-  \x1b[30m\x1b[32m\x1b[1mA added\x1b[30m (esc)
-  \x1b[30m\x1b[32m\x1b[1mA copied\x1b[30m (esc)
-  \x1b[30m\x1b[30m  modified\x1b[30m (esc)
-  \x1b[30m\x1b[31m\x1b[1mR removed\x1b[30m (esc)
-  \x1b[30m\x1b[36m\x1b[1m\x1b[4m! deleted\x1b[30m (esc)
-  \x1b[30m\x1b[35m\x1b[1m\x1b[4m? unknown\x1b[30m (esc)
-  \x1b[30m\x1b[30m\x1b[1mI ignored\x1b[30m (esc)
-  \x1b[30m\x1b[30mC .hgignore\x1b[30m (esc)
-  \x1b[30m\x1b[30mC modified\x1b[30m (esc)
+  warning: failed to set color mode to terminfo
+  \x1b[0;32;1mA added\x1b[0m (esc)
+  \x1b[0;32;1mA copied\x1b[0m (esc)
+  \x1b[0;0m  modified\x1b[0m (esc)
+  \x1b[0;31;1mR removed\x1b[0m (esc)
+  \x1b[0;36;1;4m! deleted\x1b[0m (esc)
+  \x1b[0;35;1;4m? unknown\x1b[0m (esc)
+  \x1b[0;30;1mI ignored\x1b[0m (esc)
+  \x1b[0;0mC .hgignore\x1b[0m (esc)
+  \x1b[0;0mC modified\x1b[0m (esc)


   $ echo "^ignoreddir$" > .hgignore

ERROR:
/var/tmp/portage/dev-vcs/mercurial-2.0/work/mercurial-2.0/tests/test-status-color.t
output changed

----------
messages: 18228
nosy: djc
priority: bug
status: unread
title: test-status-color.t fails if python is compiled without curses support
topic: color

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue3135>
____________________________________________________


More information about the Mercurial-devel mailing list