[py-dev] Can py.test collect a test inside a shared library?
Ateljevich, Eli
eli at water.ca.gov
Fri Jan 27 06:16:58 CET 2012
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
More information about the Pytest-dev
mailing list