Dag Sverre Seljebotn wrote: > Something else: The "cimport" triggers a module import so the numpy > testcase fails on systems where numpy is not installed. This isn't all > that serious I feel (a failing numpy testcase will communicate the right > thing to users not having numpy installed) so I think we should wait > until after the release (and then add some kind of "_USES" special > testcase variable).
Can't we keep a mapping of required imports (i.e. package names) to test case name patterns in runtests.py, and then try-except on the import before considering a matching test(s) for inclusion? That way, we could skip the tests that have unsatisfied external requirements entirely. If we additionally used a standard naming pattern like "numpy_xyz.pyx" for numpy related test cases, that would become trivial to handle. Stefan _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
