No subject


Wed Feb 1 01:17:57 PST 2012


item.getparent(pytest.Module).  This is a collection node, the
underlying python module object is "item.getparent(pytest.Module).obj".
You can then use this information to mark a module as "skip all other tests"
and perform this action from runtest_setup.

If you need a working example for a "first failing test skips
running of the rest of the Module" let us know.

I am not sure, btw, but i think it might be better to use "xfail" instead
of skip - see http://pytest.org/latest/skipping.html for the current
recommended distinction.

best,
holger



More information about the testing-in-python mailing list