Skip to content

Commit 7cc513b

Browse files
committed
Remove unused NodeMarkers
This class was both added and became unused during the development of a PR: pytest-dev#3317
1 parent 1ebca37 commit 7cc513b

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

src/_pytest/mark/structures.py

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import attr
1010

1111
from ..compat import ascii_escaped
12-
from ..compat import ATTRS_EQ_FIELD
1312
from ..compat import getfslineno
1413
from ..compat import NOTSET
1514
from _pytest.outcomes import fail
@@ -391,35 +390,3 @@ def __len__(self):
391390

392391
def __repr__(self):
393392
return "<NodeKeywords for node {}>".format(self.node)
394-
395-
396-
# mypy cannot find this overload, remove when on attrs>=19.2
397-
@attr.s(hash=False, **{ATTRS_EQ_FIELD: False}) # type: ignore
398-
class NodeMarkers:
399-
"""
400-
internal structure for storing marks belonging to a node
401-
402-
..warning::
403-
404-
unstable api
405-
406-
"""
407-
408-
own_markers = attr.ib(default=attr.Factory(list))
409-
410-
def update(self, add_markers):
411-
"""update the own markers
412-
"""
413-
self.own_markers.extend(add_markers)
414-
415-
def find(self, name):
416-
"""
417-
find markers in own nodes or parent nodes
418-
needs a better place
419-
"""
420-
for mark in self.own_markers:
421-
if mark.name == name:
422-
yield mark
423-
424-
def __iter__(self):
425-
return iter(self.own_markers)

0 commit comments

Comments
 (0)