##// END OF EJS Templates
add a small test for contrib/check-code.py...
Pierre-Yves David -
r10715:83dce0f8 default
parent child Browse files
Show More
@@ -0,0 +1,16 b''
1 #!/bin/sh
2 #cd `dirname $0`
3 cat > correct.py <<EOF
4 def toto(arg1, arg2):
5 del arg2
6 return (5 + 6, 9)
7 EOF
8
9 cat > wrong.py <<EOF
10 def toto( arg1, arg2):
11 del(arg2)
12 return ( 5+6, 9)
13 EOF
14
15 check_code=`dirname $0`/../contrib/check-code.py
16 ${check_code} ./wrong.py ./correct.py
@@ -0,0 +1,10 b''
1 ./wrong.py:1:
2 > def toto( arg1, arg2):
3 gratuitous whitespace in () or []
4 ./wrong.py:2:
5 > del(arg2)
6 del isn't a function
7 ./wrong.py:3:
8 > return ( 5+6, 9)
9 missing whitespace in expression
10 gratuitous whitespace in () or []
General Comments 0
You need to be logged in to leave comments. Login now