# HG changeset patch # User Pierre-Yves David # Date 2015-05-18 21:30:24 # Node ID e78447e616246c42d62cd6c4da84f6b785823d12 # Parent db77ff0b63da9a135b2c30a29c16a9f2372ca39e check-code: entirely drop the 'non-py24.py' file from the test There are no Python 2.4 related errors remaining. diff --git a/tests/test-check-code.t b/tests/test-check-code.t --- a/tests/test-check-code.t +++ b/tests/test-check-code.t @@ -17,25 +17,6 @@ > ( 4-1 ) """, "( 1+1 )\" and ") > a, '\\\\\\\\', "\\\\\\" x-2", "c-1" > EOF - $ cat > non-py24.py < # try/except/finally block does not exist in Python 2.4 - > try: - > pass - > except StandardError, inst: - > pass - > finally: - > pass - > - > # nested try/finally+try/except is allowed - > try: - > try: - > pass - > except StandardError, inst: - > pass - > finally: - > pass - > - > EOF $ cat > classstyle.py < class newstyle_class(object): > pass @@ -50,7 +31,7 @@ > pass > EOF $ check_code="$TESTDIR"/../contrib/check-code.py - $ "$check_code" ./wrong.py ./correct.py ./quote.py ./non-py24.py ./classstyle.py + $ "$check_code" ./wrong.py ./correct.py ./quote.py ./classstyle.py ./wrong.py:1: > def toto( arg1, arg2): gratuitous whitespace in () or []