Skip to content

Commit e9bb1aa

Browse files
committed
python: be consistent with what value marks have in keywords
Marks are added to keywords in three places: - `Node.add_marker`: name -> `Mark` - `Function.__init__(callspec)`: name -> `Mark` - `Function.__init__ iter_markers`: name -> True I think it should be consistent, which will also help with some upcoming code cleaning. The `Mark` seems more useful than just a `True`, so switch to that.
1 parent 4e5fb52 commit e9bb1aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytest/python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1675,7 +1675,7 @@ def __init__(
16751675

16761676
self.keywords.update(
16771677
{
1678-
mark.name: True
1678+
mark.name: mark
16791679
for mark in self.iter_markers()
16801680
if mark.name not in self.keywords
16811681
}

0 commit comments

Comments
 (0)