diff --git a/src/_pytest/python.py b/src/_pytest/python.py index 98c28b3d2..d07c01d7b 100644 --- a/src/_pytest/python.py +++ b/src/_pytest/python.py @@ -1675,7 +1675,7 @@ class Function(PyobjMixin, nodes.Item): self.keywords.update( { - mark.name: True + mark.name: mark for mark in self.iter_markers() if mark.name not in self.keywords }