Skip to content

Commit 643e5a9

Browse files
fix docs
1 parent b848603 commit 643e5a9

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
@@ -231,6 +231,12 @@ def get_unpacked_marks(obj):
231231

232232

233233
def normalize_mark_list(mark_list):
234+
"""
235+
normalizes marker decorating helpers to mark objects
236+
237+
:type mark_list: List[Union[Mark, Markdecorator]]
238+
:rtype: List[Mark]
239+
"""
234240
return [getattr(mark, "mark", mark) for mark in mark_list] # unpack MarkDecorator
235241

236242

0 commit comments

Comments
 (0)