tests/test-check-code.t
changeset 18180 c582a71457e5
parent 17620 efd1a4378b64
child 18183 e1caaeb5a2ed
equal deleted inserted replaced
18179:f614543733b6 18180:c582a71457e5
   157   $ "$check_code" warning.py --warning --nolineno
   157   $ "$check_code" warning.py --warning --nolineno
   158   warning.py:0:
   158   warning.py:0:
   159    > except:
   159    > except:
   160    warning: naked except clause
   160    warning: naked except clause
   161   [1]
   161   [1]
       
   162 
       
   163   $ cat > raise-format.py <<EOF
       
   164   > raise SomeException, message
       
   165   > # this next line is okay
       
   166   > raise SomeException(arg1, arg2)
       
   167   > EOF
       
   168   $ "$check_code" raise-format.py
       
   169   raise-format.py:1:
       
   170    > raise SomeException, message
       
   171    don't use old-style two-argument raise, use Exception(message)
       
   172   [1]