Obtain the unpacked marks that are stored on an object.
(obj: object)
| 361 | |
| 362 | |
| 363 | def get_unpacked_marks(obj: object) -> Iterable[Mark]: |
| 364 | """Obtain the unpacked marks that are stored on an object.""" |
| 365 | mark_list = getattr(obj, "pytestmark", []) |
| 366 | if not isinstance(mark_list, list): |
| 367 | mark_list = [mark_list] |
| 368 | return normalize_mark_list(mark_list) |
| 369 | |
| 370 | |
| 371 | def normalize_mark_list( |
no test coverage detected