History log of /external/python/cpython3/Lib/test/badsyntax_future7.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
328f338196f79e68f867a35cda171f01abef4f8e 13-Dec-2003 Neal Norwitz <nnorwitz@gmail.com> SF #736962, port test_future to unittest, add a bit more coverage, by Walter Dörwald
/external/python/cpython3/Lib/test/badsyntax_future7.py
3090694068670371cdbd5b1a3d3c5dbecc83835a 18-Apr-2001 Jeremy Hylton <jeremy@alum.mit.edu> 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.
/external/python/cpython3/Lib/test/badsyntax_future7.py