tests/test-check-code.t
branchstable
changeset 19494 3119dc155ac2
parent 19422 d9e86d656017
child 19501 725507cd5216
equal deleted inserted replaced
19493:ca76e77dd663 19494:3119dc155ac2
   185   $ cat > raise-format.py <<EOF
   185   $ cat > raise-format.py <<EOF
   186   > raise SomeException, message
   186   > raise SomeException, message
   187   > # this next line is okay
   187   > # this next line is okay
   188   > raise SomeException(arg1, arg2)
   188   > raise SomeException(arg1, arg2)
   189   > EOF
   189   > EOF
   190   $ "$check_code" raise-format.py
   190   $ "$check_code" not-existing.py raise-format.py
       
   191   Skipping*not-existing.py* (glob)
   191   raise-format.py:1:
   192   raise-format.py:1:
   192    > raise SomeException, message
   193    > raise SomeException, message
   193    don't use old-style two-argument raise, use Exception(message)
   194    don't use old-style two-argument raise, use Exception(message)
   194   [1]
   195   [1]
       
   196