Mercurial > hg
view tests/test-check-code @ 10956:a156ce543a5b
bookmarks: complete the missing references from dda4ad7c9ea9 (issue2121)
The fix for issue1611 left one last use of "repo" instead of "self" that has
resulted in more memory leaks from push/pull operations.
author | Isaac Jurado <diptongo@gmail.com> |
---|---|
date | Sat, 17 Apr 2010 14:32:26 +0200 |
parents | 62b8f15683f2 |
children | 920a783e5f91 |
line wrap: on
line source
#!/bin/sh #cd `dirname $0` cat > correct.py <<EOF def toto(arg1, arg2): del arg2 return (5 + 6, 9) EOF cat > wrong.py <<EOF def toto( arg1, arg2): del(arg2) return ( 5+6, 9) EOF cat > quote.py <<EOF # let's use quote in comments (''' ( 4x5 ) but """\\''' and finally''', """let's fool checkpatch""", '1+2', '"""', 42+1, """and ( 4-1 ) """, "( 1+1 )\" and ") a, '\\\\\\\\', "\\\\\\" x-2", "c-1" EOF check_code=`dirname $0`/../contrib/check-code.py ${check_code} ./wrong.py ./correct.py ./quote.py