Hi Eli, by default py.test searches for test functions test_*.py as for test functions, they are supposed to start with test as well
it might make sense to slit your c written test function into a few test util function, that way you can run the c written part step by step, and do assertions in between (for getting a more detailed idea of whats wrong, if something goes wrong) -- Ronny On 01/27/2012 06:16 AM, Ateljevich, Eli wrote: > Hi all, > If I have a test compiled from C or f2py that is called test_something and is > compiled to mymod.so (using Linux as the example), would it get collected ... > if you grant for the sake of conversation that I could possibly have > something useful to put in it? I realize I can't use the usual recompiling of > assertion magic. > > I tried creating an __init__.py file: > from mymod import * > > and running py.test on the directory without success. Maybe it needs to be in > test_something.py? I thought I would check in about whether this is credited > with a chance before I double my efforts. > > Thanks, > Eli > _______________________________________________ > py-dev mailing list > py-dev@codespeak.net > http://codespeak.net/mailman/listinfo/py-dev
signature.asc
Description: OpenPGP digital signature
_______________________________________________ py-dev mailing list py-dev@codespeak.net http://codespeak.net/mailman/listinfo/py-dev