From e4a52c1795c068a8b113578429532f9e5103a835 Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Fri, 30 Mar 2018 08:19:45 +0200 Subject: [PATCH] prevent doubleing of function level marks --- _pytest/python.py | 2 ++ 1 file changed, 2 insertions(+) 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,