check-code: entirely drop the 'non-py24.py' file from the test
authorPierre-Yves David <pierre-yves.david@fb.com>
Mon, 18 May 2015 16:30:24 -0500
changeset 25199 e78447e61624
parent 25198 db77ff0b63da
child 25200 3613819fb05f
check-code: entirely drop the 'non-py24.py' file from the test There are no Python 2.4 related errors remaining.
tests/test-check-code.t
--- a/tests/test-check-code.t	Mon May 18 16:11:44 2015 -0500
+++ b/tests/test-check-code.t	Mon May 18 16:30:24 2015 -0500
@@ -17,25 +17,6 @@
   > ( 4-1 ) """, "( 1+1 )\" and ")
   > a, '\\\\\\\\', "\\\\\\" x-2", "c-1"
   > EOF
-  $ cat > non-py24.py <<EOF
-  > # 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 <<EOF
   > 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 []