[Python-Dev] AST branch update
Armin Rigo
arigo at tunes.org
Mon Oct 17 18:52:09 CEST 2005
Hi Jeremy,
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,
http://codespeak.net/svn/pypy/dist/pypy/interpreter/test/test_syntax.py
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,
2.4.2, HEAD).
A bientot,
Armin.
More information about the Python-Dev
mailing list