After the fact I remembered there is `node.iter_markers()` so let's be consistent with that rather than with `listchain()`.
3 lines
224 B
ReStructuredText
3 lines
224 B
ReStructuredText
Added the :func:`iter_parents() <_pytest.nodes.Node.iter_parents>` helper method on nodes.
|
|
It is similar to :func:`listchain <_pytest.nodes.Node.listchain>`, but goes from bottom to top, and returns an iterator, not a list.
|