nodes: fix string possibly stored in Node.keywords instead of MarkDecorator
This mistake was introduced in 7259c453d6
.
This commit is contained in:
parent
83891d9022
commit
04a6d37823
|
@ -276,7 +276,7 @@ class Node(metaclass=NodeMeta):
|
||||||
marker_ = getattr(MARK_GEN, marker)
|
marker_ = getattr(MARK_GEN, marker)
|
||||||
else:
|
else:
|
||||||
raise ValueError("is not a string or pytest.mark.* Marker")
|
raise ValueError("is not a string or pytest.mark.* Marker")
|
||||||
self.keywords[marker_.name] = marker
|
self.keywords[marker_.name] = marker_
|
||||||
if append:
|
if append:
|
||||||
self.own_markers.append(marker_.mark)
|
self.own_markers.append(marker_.mark)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue