Fix hook name in deprecations.rst

As mentioned in https://github.com/pytest-dev/pytest/issues/4128#issuecomment-430690498
This commit is contained in:
Bruno Oliveira 2018-10-17 14:53:41 -03:00 committed by GitHub
parent f7285b6ab2
commit ba5a295544
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ Using ``Class`` in custom Collectors
.. deprecated:: 3.9 .. deprecated:: 3.9
Using objects named ``"Class"`` as a way to customize the type of nodes that are collected in ``Collector`` Using objects named ``"Class"`` as a way to customize the type of nodes that are collected in ``Collector``
subclasses has been deprecated. Users instead should use ``pytest_collect_make_item`` to customize node types during subclasses has been deprecated. Users instead should use ``pytest_pycollect_makeitem`` to customize node types during
collection. collection.
This issue should affect only advanced plugins who create new collection types, so if you see this warning This issue should affect only advanced plugins who create new collection types, so if you see this warning