Fix raised warning when attrs 17.4.0 is used

Related: #3223
This commit is contained in:
Thomas Hisch 2018-02-15 21:09:44 +01:00
parent 063e2da967
commit 82cdc487ce
2 changed files with 3 additions and 3 deletions

View File

@ -831,9 +831,9 @@ def _ensure_immutable_ids(ids):
@attr.s(frozen=True) @attr.s(frozen=True)
class FixtureFunctionMarker(object): class FixtureFunctionMarker(object):
scope = attr.ib() scope = attr.ib()
params = attr.ib(convert=attr.converters.optional(tuple)) params = attr.ib(converter=attr.converters.optional(tuple))
autouse = attr.ib(default=False) autouse = attr.ib(default=False)
ids = attr.ib(default=None, convert=_ensure_immutable_ids) ids = attr.ib(default=None, converter=_ensure_immutable_ids)
name = attr.ib(default=None) name = attr.ib(default=None)
def __call__(self, function): def __call__(self, function):

View File

@ -59,7 +59,7 @@ def main():
'py>=1.5.0', 'py>=1.5.0',
'six>=1.10.0', 'six>=1.10.0',
'setuptools', 'setuptools',
'attrs>=17.2.0', 'attrs>=17.4.0',
] ]
# if _PYTEST_SETUP_SKIP_PLUGGY_DEP is set, skip installing pluggy; # if _PYTEST_SETUP_SKIP_PLUGGY_DEP is set, skip installing pluggy;
# used by tox.ini to test with pluggy master # used by tox.ini to test with pluggy master