nodes: fix string possibly stored in Node.keywords instead of MarkDecorator

This mistake was introduced in 7259c453d6.
This commit is contained in:
Ran Benita 2020-06-22 15:07:50 +03:00
parent 83891d9022
commit 04a6d37823
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ class Node(metaclass=NodeMeta):
marker_ = getattr(MARK_GEN, marker)
else:
raise ValueError("is not a string or pytest.mark.* Marker")
self.keywords[marker_.name] = marker
self.keywords[marker_.name] = marker_
if append:
self.own_markers.append(marker_.mark)
else: