Change pluggy._CallOutcome to pluggy._Result after update to pluggy-0.5
This commit is contained in:
parent
c7be83ac47
commit
e2c59d3282
|
@ -452,7 +452,7 @@ hook wrappers and passes the same arguments as to the regular hooks.
|
||||||
|
|
||||||
At the yield point of the hook wrapper pytest will execute the next hook
|
At the yield point of the hook wrapper pytest will execute the next hook
|
||||||
implementations and return their result to the yield point in the form of
|
implementations and return their result to the yield point in the form of
|
||||||
a :py:class:`CallOutcome <pluggy._CallOutcome>` instance which encapsulates a result or
|
a :py:class:`Result <pluggy._Result>` instance which encapsulates a result or
|
||||||
exception info. The yield point itself will thus typically not raise
|
exception info. The yield point itself will thus typically not raise
|
||||||
exceptions (unless there are bugs).
|
exceptions (unless there are bugs).
|
||||||
|
|
||||||
|
@ -517,7 +517,7 @@ Here is the order of execution:
|
||||||
Plugin1).
|
Plugin1).
|
||||||
|
|
||||||
4. Plugin3's pytest_collection_modifyitems then executing the code after the yield
|
4. Plugin3's pytest_collection_modifyitems then executing the code after the yield
|
||||||
point. The yield receives a :py:class:`CallOutcome <pluggy._CallOutcome>` instance which encapsulates
|
point. The yield receives a :py:class:`Result <pluggy._Result>` instance which encapsulates
|
||||||
the result from calling the non-wrappers. Wrappers shall not modify the result.
|
the result from calling the non-wrappers. Wrappers shall not modify the result.
|
||||||
|
|
||||||
It's possible to use ``tryfirst`` and ``trylast`` also in conjunction with
|
It's possible to use ``tryfirst`` and ``trylast`` also in conjunction with
|
||||||
|
@ -714,7 +714,7 @@ Reference of objects involved in hooks
|
||||||
:members:
|
:members:
|
||||||
:inherited-members:
|
:inherited-members:
|
||||||
|
|
||||||
.. autoclass:: pluggy._CallOutcome()
|
.. autoclass:: pluggy._Result
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
.. autofunction:: _pytest.config.get_plugin_manager()
|
.. autofunction:: _pytest.config.get_plugin_manager()
|
||||||
|
|
Loading…
Reference in New Issue