diff tests/test-check-code.t @ 15502:7917a104a285

check-code: add --nolineno option for hiding line numbers This makes the output more stable when it is used as a whitelist.
author Mads Kiilerich <mads@kiilerich.com>
date Fri, 11 Nov 2011 01:25:47 +0100
parents 42e71f5852ee
children 72803c8edaa4
line wrap: on
line diff
--- a/tests/test-check-code.t	Wed Nov 16 18:04:19 2011 -0600
+++ b/tests/test-check-code.t	Fri Nov 11 01:25:47 2011 +0100
@@ -132,3 +132,11 @@
    object comparison with literal
   [1]
 
+  $ cat > warning.py <<EOF
+  > except:
+  > EOF
+  $ "$check_code" warning.py --warning --nolineno
+  warning.py:0:
+   > except:
+   warning: naked except clause
+  [1]