tests/test-contrib-check-code.t
changeset 48945 55d132525155
parent 41826 867883d454ea
equal deleted inserted replaced
48944:fe3303436b79 48945:55d132525155
    49    >     return 1 + \
    49    >     return 1 + \
    50    Use () to wrap long lines in Python, not \
    50    Use () to wrap long lines in Python, not \
    51   ./quote.py:5:
    51   ./quote.py:5:
    52    > '"""', 42+1, """and
    52    > '"""', 42+1, """and
    53    missing whitespace in expression
    53    missing whitespace in expression
    54   ./classstyle.py:4:
       
    55    > class oldstyle_class:
       
    56    old-style class, use class foo(object)
       
    57   ./classstyle.py:7:
       
    58    > class empty():
       
    59    class foo() creates old style object, use class foo(object)
       
    60   [1]
    54   [1]
    61   $ cat > python3-compat.py << NO_CHECK_EOF
    55   $ cat > python3-compat.py << NO_CHECK_EOF
    62   > foo <> bar
    56   > foo <> bar
    63   > reduce(lambda a, b: a + b, [1, 2, 3, 4])
    57   > reduce(lambda a, b: a + b, [1, 2, 3, 4])
    64   > dict(key=value)
    58   > dict(key=value)