Craig Citro, 07.07.2010 09:46: >> If this ends up being coded from scratch, I think it would make testing >> easier if one could actually write down all the files in a single >> testcase bundle file (e.g. with a "test" suffix). Something like the >> following, which is simply split up into seperate files by runtests.py: > > I *really* like this idea -- I've already gotten tired of browsing > through the few files in the tests I've got. ;) Then we wouldn't need > to worry about having an extra tree floating around, and it's very > natural for someone to copy such a test to use as a base for what they > want to do ...
Ok, given your explanation in your other mail, this makes sense to me, too. That makes it easy enough to write tests with simple files in different places, be it .py files or .pyx files or .pxd files. The import mechanism is clearly lacking a lot of tests, so I'm happy to see this getting solved. It could also be an alternative to (or replace?) the naming convention for wrapper files, assuming that a short(!) wrapper test is much easier to read when everything is in one file. For longer files, this can get harder to read and edit, though, depending on the editor support (Emacs will work well, I guess). I guess both ways have their raison d'ĂȘtre... Stefan _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
