pytest_cases/common_pytest.py
def ParameterSet(values,
                     id,  # noqa
                     marks):
        """ Dummy function (not a class) used only by parametrize_plus """
        if id is not None:
            raise ValueError("This should not happen as `pytest.param` does not exist in pytest 2")

        # smart unpack is required for compatibility
        val = values[0] if len(values) == 1 else values
        nbmarks = len(marks)

        if nbmarks == 0:
            return val
        elif nbmarks > 1:
            raise ValueError("Multiple marks on parameters not supported for old versions of pytest")
        else:
            # decorate with the MarkDecorator
            return marks[0](val)
 Dummy function (not a class) used only by parametrize_plus 
Dummy function (not a class) used only by parametrize_plus
Dummy function ( not a class ) used only by parametrize_plus
def ParameterSet(values,
                     id,  
                     marks):
        if id is not None:
            raise ValueError("This should not happen as `pytest.param` does not exist in pytest 2")
        val = values[0] if len(values) == 1 else values
        nbmarks = len(marks)
        if nbmarks == 0:
            return val
        elif nbmarks > 1:
            raise ValueError("Multiple marks on parameters not supported for old versions of pytest")
        else:
            return marks[0](val)
def ParameterSet ( values , id , marks ) : if id is not None : raise ValueError ( "This should not happen as `pytest.param` does not exist in pytest 2" ) val = values [ 0 ] if len ( values ) == 1 else values nbmarks = len ( marks ) if nbmarks == 0 : return val elif nbmarks > 1 : raise ValueError ( "Multiple marks on parameters not supported for old versions of pytest" ) else : return marks [ 0 ] ( val )
Dummy function (not a class) used only by parametrize_plus
Dummy function ( not a class ) used only by parametrize_plus
# noqa """ Dummy function (not a class) used only by parametrize_plus """ # smart unpack is required for compatibility # decorate with the MarkDecorator
values
id
marks