From a92a51b01b261df5b8491c6b13784c982a5320ca Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Tue, 20 Mar 2018 15:22:28 +0100 Subject: [PATCH] clarify find_markers return value --- _pytest/nodes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/_pytest/nodes.py b/_pytest/nodes.py index a37fa4698..4988421c4 100644 --- a/_pytest/nodes.py +++ b/_pytest/nodes.py @@ -185,6 +185,7 @@ class Node(object): """find all marks with the given name on the node and its parents :param str name: name of the marker + :returns: iterator over marks matching the name """ for node in reversed(self.listchain()): for mark in node._markers.find(name):