Could we simplify this to checking if item has get_marker, rather than checking the pytest version? Something like: `if hasattr(item, 'get_marker'):`