diff tests/test-extension.t @ 39221:d7ac6dafc609

tests: drop an unnecessary redirect to /dev/null This eliminates the need to conditionalize the color output, because NUL on Windows is a tty. Credit to Yuya for recognizing this.
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 20 Aug 2018 22:04:22 -0400
parents 68b6383a840a
children 23b749b84b8a
line wrap: on
line diff
--- a/tests/test-extension.t	Mon Aug 20 11:29:43 2018 -0400
+++ b/tests/test-extension.t	Mon Aug 20 22:04:22 2018 -0400
@@ -1254,11 +1254,9 @@
   > def g():
   >     pass
   > EOF
-  $ hg --config extensions.path=./path.py help foo > /dev/null
-  abort: no such help topic: foo (no-windows !)
-  (try 'hg help --keyword foo') (no-windows !)
-  \x1b[0;31mabort: no such help topic: foo\x1b[0m (esc) (windows !)
-  \x1b[0;31m(try 'hg help --keyword foo')\x1b[0m (esc) (windows !)
+  $ hg --config extensions.path=./path.py help foo
+  abort: no such help topic: foo
+  (try 'hg help --keyword foo')
   [255]
 
   $ cat > throw.py <<EOF