[Cython] Running the CPython regression tests

Stefan Behnel stefan_ml at behnel.de
Fri Jul 11 09:53:37 CEST 2008


Hi,

I extended the test runner script to let it run the CPython regression test
suite. All you have to do is take a source distribution of CPython and copy
the "Lib/test" directory over to Cython's "tests/" directory, naming it
"pyregr". The test runner will compile each module and run all unit tests it
finds.

Currently, most of them fail, but I have about 160 out of 205 compiling from
the CPython 2.5.1 test suite. Almost of all the failures are due to three things:

- inner classes and functions
- lambda
- print >>

I don't mind the latter since it's gone in Py3, and I'm happy to know that the
rest is underways. There are also generator expressions, but they should be
simple to implement once the function-to-class transformations work.

Stefan


More information about the Cython-dev mailing list