[PATCH 3 of 3] tests: print line numbers when checking code
Simon Heimberg
simohe at besonet.ch
Sat Jul 6 21:49:55 UTC 2013
# HG changeset patch
# User Simon Heimberg <simohe at besonet.ch>
# Date 1373140087 -7200
# Node ID e3410899c4ba2cc0bd723c8d9ea8e2c701ae0f27
# Parent ff9b18822beb9c82f84d9bfc3b2d59faad341529
tests: print line numbers when checking code
When an exception will be listed the line numbers can be replaced with glob
as it is done in test-check-pyflakes.t
diff -r ff9b18822beb -r e3410899c4ba tests/test-check-code-hg.t
--- a/tests/test-check-code-hg.t Sam Jul 06 21:48:01 2013 +0200
+++ b/tests/test-check-code-hg.t Sam Jul 06 21:48:07 2013 +0200
@@ -27,5 +27,5 @@
New errors are not allowed. Warnings are strongly discouraged.
$ { hg manifest 2>/dev/null; ls "$TESTTMP"/*.py; } \
- > | xargs "$check_code" --warnings --nolineno --per-file=0 \
+ > | xargs "$check_code" --warnings --per-file=0 \
> || false
More information about the Mercurial-devel
mailing list