Switch `for_parameterize` to `for_parametrize`

This commit is contained in:
Alan Velasco 2018-01-30 16:20:43 -06:00
parent 3bc7ced97a
commit 547070e2d8
3 changed files with 4 additions and 3 deletions

View File

@ -70,7 +70,7 @@ class ParameterSet(namedtuple('ParameterSet', 'values, marks, id')):
return cls(argval, marks=newmarks, id=None)
@classmethod
def _for_parameterize(cls, argnames, argvalues, function):
def _for_parametrize(cls, argnames, argvalues, function, config):
if not isinstance(argnames, (tuple, list)):
argnames = [x.strip() for x in argnames.split(",") if x.strip()]
force_tuple = len(argnames) == 1

View File

@ -785,8 +785,8 @@ class Metafunc(fixtures.FuncargnamesCompatAttr):
from _pytest.fixtures import scope2index
from _pytest.mark import ParameterSet
from py.io import saferepr
argnames, parameters = ParameterSet._for_parameterize(
argnames, argvalues, self.function)
argnames, parameters = ParameterSet._for_parametrize(
argnames, argvalues, self.function, self.config)
del argvalues
if scope is None:

1
changelog/3166.trivial Normal file
View File

@ -0,0 +1 @@
Change the naming of ``_for_parameterize()`` to ``_for_parametrize()`` in order to comply with the naming convention.