tests/test-check-code.t
changeset 19422 d9e86d656017
parent 18762 a91387a37f05
child 19494 3119dc155ac2
--- a/tests/test-check-code.t	Wed Jul 17 10:49:34 2013 +0200
+++ b/tests/test-check-code.t	Tue Jul 16 01:29:14 2013 +0200
@@ -172,6 +172,16 @@
    naked except clause
   [1]
 
+  $ cat > warning.t <<EOF
+  >   $ function warnonly {
+  >   > }
+  > EOF
+  $ "$check_code" warning.t
+  $ "$check_code" --warn warning.t
+  warning.t:1:
+   >   $ function warnonly {
+   warning: don't use 'function', use old style
+  [1]
   $ cat > raise-format.py <<EOF
   > raise SomeException, message
   > # this next line is okay