diff --git a/_pytest/python.py b/_pytest/python.py index 5b3e0138f..94f83a37d 100644 --- a/_pytest/python.py +++ b/_pytest/python.py @@ -1122,6 +1122,8 @@ class Function(FunctionMixin, nodes.Item, fixtures.FuncargnamesCompatAttr): Python test function. """ _genid = None + # disable since functions handle it themselfes + _ALLOW_MARKERS = False def __init__(self, name, parent, args=None, config=None, callspec=None, callobj=NOTSET, keywords=None, session=None,