tests/test-check-code.t
changeset 18180 c582a71457e5
parent 17620 efd1a4378b64
child 18183 e1caaeb5a2ed
--- a/tests/test-check-code.t	Tue Jan 01 13:25:07 2013 -0600
+++ b/tests/test-check-code.t	Tue Jan 01 12:58:21 2013 -0600
@@ -159,3 +159,14 @@
    > except:
    warning: naked except clause
   [1]
+
+  $ cat > raise-format.py <<EOF
+  > raise SomeException, message
+  > # this next line is okay
+  > raise SomeException(arg1, arg2)
+  > EOF
+  $ "$check_code" raise-format.py
+  raise-format.py:1:
+   > raise SomeException, message
+   don't use old-style two-argument raise, use Exception(message)
+  [1]