diff --git a/changelog/3605.bugfix.rst b/changelog/3605.bugfix.rst index 2d8513332..58a294ecb 100644 --- a/changelog/3605.bugfix.rst +++ b/changelog/3605.bugfix.rst @@ -1 +1 @@ -unpack marks from parameterization to prevent the markdecorator missmatch bug. +no longer ValueError when using the ``get_marker`` api. diff --git a/src/_pytest/mark/structures.py b/src/_pytest/mark/structures.py index a04918f9d..d416e422b 100644 --- a/src/_pytest/mark/structures.py +++ b/src/_pytest/mark/structures.py @@ -231,6 +231,12 @@ def get_unpacked_marks(obj): def normalize_mark_list(mark_list): + """ + normalizes marker decorating helpers to mark objects + + :type mark_list: List[Union[Mark, Markdecorator]] + :rtype: List[Mark] + """ return [getattr(mark, "mark", mark) for mark in mark_list] # unpack MarkDecorator