diff --git a/tests/test-check-code b/tests/test-check-code new file mode 100755 --- /dev/null +++ b/tests/test-check-code @@ -0,0 +1,16 @@ +#!/bin/sh +#cd `dirname $0` +cat > correct.py < wrong.py < def toto( arg1, arg2): + gratuitous whitespace in () or [] +./wrong.py:2: + > del(arg2) + del isn't a function +./wrong.py:3: + > return ( 5+6, 9) + missing whitespace in expression + gratuitous whitespace in () or []