Repaired implementation of parameterization from pytest.