##// END OF EJS Templates
check-code: entirely drop the 'non-py24.py' file from the test...
Pierre-Yves David -
r25199:e78447e6 default
parent child Browse files
Show More
@@ -17,25 +17,6 b''
17 > ( 4-1 ) """, "( 1+1 )\" and ")
17 > ( 4-1 ) """, "( 1+1 )\" and ")
18 > a, '\\\\\\\\', "\\\\\\" x-2", "c-1"
18 > a, '\\\\\\\\', "\\\\\\" x-2", "c-1"
19 > EOF
19 > EOF
20 $ cat > non-py24.py <<EOF
21 > # try/except/finally block does not exist in Python 2.4
22 > try:
23 > pass
24 > except StandardError, inst:
25 > pass
26 > finally:
27 > pass
28 >
29 > # nested try/finally+try/except is allowed
30 > try:
31 > try:
32 > pass
33 > except StandardError, inst:
34 > pass
35 > finally:
36 > pass
37 >
38 > EOF
39 $ cat > classstyle.py <<EOF
20 $ cat > classstyle.py <<EOF
40 > class newstyle_class(object):
21 > class newstyle_class(object):
41 > pass
22 > pass
@@ -50,7 +31,7 b''
50 > pass
31 > pass
51 > EOF
32 > EOF
52 $ check_code="$TESTDIR"/../contrib/check-code.py
33 $ check_code="$TESTDIR"/../contrib/check-code.py
53 $ "$check_code" ./wrong.py ./correct.py ./quote.py ./non-py24.py ./classstyle.py
34 $ "$check_code" ./wrong.py ./correct.py ./quote.py ./classstyle.py
54 ./wrong.py:1:
35 ./wrong.py:1:
55 > def toto( arg1, arg2):
36 > def toto( arg1, arg2):
56 gratuitous whitespace in () or []
37 gratuitous whitespace in () or []
General Comments 0
You need to be logged in to leave comments. Login now