[Python-checkins] CVS: python/dist/src/Lib/test/output test_future,1.1,1.2

Jeremy Hylton jhylton@users.sourceforge.net
Tue, 17 Apr 2001 18:19:30 -0700


Update of /cvsroot/python/python/dist/src/Lib/test/output
In directory usw-pr-cvs1:/tmp/cvs-serv23878/output

Modified Files:
	test_future 
Log Message:
Fix compileall.py so that it fails on SyntaxErrors

The changes cause compilation failures in any file in the Python
installation lib directory to cause the install to fail.  It looks
like compileall.py intended to behave this way, but a change to
py_compile.py and a separate bug defeated it.

Fixes SF bug #412436

This change affects the test suite, which contains several files that
contain intentional errors.  The solution is to extend compileall.py
with the ability to skip compilation of selected files.

In the test suite, rename nocaret.py and test_future[3..7].py to start
with badsyntax_nocaret.py and badsyntax_future[3..7].py.  Update the
makefile to skip compilation of these files.  Update the tests to use
the name names for imports.

NB compileall.py is changed so that compile_dir() returns success only
if all recursive calls to compile_dir() also check success.


Index: test_future
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/output/test_future,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** test_future	2001/02/28 17:48:06	1.1
--- test_future	2001/04/18 01:19:28	1.2
***************
*** 2,8 ****
  6
  6
! SyntaxError test_future3 3
! SyntaxError test_future4 3
! SyntaxError test_future5 4
! SyntaxError test_future6 3
! SyntaxError test_future7 3
--- 2,8 ----
  6
  6
! SyntaxError badsyntax_future3 3
! SyntaxError badsyntax_future4 3
! SyntaxError badsyntax_future5 4
! SyntaxError badsyntax_future6 3
! SyntaxError badsyntax_future7 3