File tree 1 file changed +0
-33
lines changed 1 file changed +0
-33
lines changed Original file line number Diff line number Diff line change 9
9
import attr
10
10
11
11
from ..compat import ascii_escaped
12
- from ..compat import ATTRS_EQ_FIELD
13
12
from ..compat import getfslineno
14
13
from ..compat import NOTSET
15
14
from _pytest .outcomes import fail
@@ -391,35 +390,3 @@ def __len__(self):
391
390
392
391
def __repr__ (self ):
393
392
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 )
You can’t perform that action at this time.
0 commit comments