[Python-Dev] AST branch update
arigo at tunes.org
Mon Oct 17 18:52:09 CEST 2005
On Thu, Oct 13, 2005 at 04:52:14PM -0400, Jeremy Hylton wrote:
> I don't think the current test suite covers all of the possible syntax
> errors that can be raised. I'd like to add a new test suite that
> covers all of the remaining cases, perhaps moving some existing tests
> into this module as well.
You might be interested in PyPy's test suite here. In particular,
contains a list of syntactically valid and invalid corner cases.
If you are willing to check out the whole of PyPy (i.e.
http://codespeak.net/svn/pypy/dist) you should also be able to run the
whole test suite, or at least the following tests:
python test_all.py pypy/interpreter/test/test_compiler.py
python test_all.py pypy/interpreter/pyparser/
which compare CPython's builtin compiler with our own compilers; as of
PyPy revision 18722 these tests pass on all CPython versions (2.3.5,
More information about the Python-Dev