Skip to content

Commit 1445a87

Browse files
fix docs
1 parent 2c50f4c commit 1445a87

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

changelog/3605.bugfix.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
unpack marks from parameterization to prevent the markdecorator missmatch bug.
1+
no longer ValueError when using the ``get_marker`` api.

src/_pytest/mark/structures.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,12 @@ def get_unpacked_marks(obj):
227227

228228

229229
def normalize_mark_list(mark_list):
230+
"""
231+
normalizes marker decorating helpers to mark objects
232+
233+
:type mark_list: List[Union[Mark, Markdecorator]]
234+
:rtype: List[Mark]
235+
"""
230236
return [getattr(mark, "mark", mark) for mark in mark_list] # unpack MarkDecorator
231237

232238

0 commit comments

Comments
 (0)