Patchwork [3,of,3] tests: print line numbers when checking code

login
register
mail settings
Submitter Simon Heimberg
Date July 6, 2013, 9:49 p.m.
Message ID <e3410899c4ba2cc0bd72.1373147395@lapsi.heimberg.home>
Download mbox | patch
Permalink /patch/1802/
State Accepted
Commit 0e25a9e259314b8b5aa4d73766bd88247fe22bd9
Delegated to: Kevin Bullock
Headers show

Comments

Simon Heimberg - July 6, 2013, 9:49 p.m.
# HG changeset patch
# User Simon Heimberg <simohe@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

Patch

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