You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Decorate hook implementations using an instance of HookimplMarker instead.
13
+
The deprecation was announced in release ``0.7.0``.
14
+
15
+
16
+
- `#120 <https://github.com/pytest-dev/pluggy/issues/120>`_: Remove the deprecated ``proc`` argument to ``call_historic``.
17
+
Use ``result_callback`` instead, which has the same behavior.
18
+
The deprecation was announced in release ``0.7.0``.
19
+
20
+
21
+
- `#265 <https://github.com/pytest-dev/pluggy/issues/265>`_: Remove the ``_Result.result`` property. Use ``_Result.get_result()`` instead.
22
+
Note that unlike ``result``, ``get_result()`` raises the exception if the hook raised.
23
+
The deprecation was announced in release ``0.6.0``.
24
+
25
+
26
+
- `#267 <https://github.com/pytest-dev/pluggy/issues/267>`_: Remove official support for Python 3.4.
27
+
28
+
29
+
- `#272 <https://github.com/pytest-dev/pluggy/issues/272>`_: Dropped support for Python 2.
30
+
Continue to use pluggy 0.13.x for Python 2 support.
31
+
32
+
33
+
- `#308 <https://github.com/pytest-dev/pluggy/issues/308>`_: Remove official support for Python 3.5.
34
+
35
+
36
+
- `#313 <https://github.com/pytest-dev/pluggy/issues/313>`_: The internal ``pluggy.callers``, ``pluggy.manager`` and ``pluggy.hooks`` are now explicitly marked private by a ``_`` prefix (e.g. ``pluggy._callers``).
37
+
Only API exported by the top-level ``pluggy`` module is considered public.
The deprecation was announced in release ``0.5.0``.
42
+
43
+
44
+
45
+
Features
46
+
--------
47
+
48
+
- `#282 <https://github.com/pytest-dev/pluggy/issues/282>`_: When registering a hookimpl which is declared as ``hookwrapper=True`` but whose
49
+
function is not a generator function, a ``PluggyValidationError`` exception is
50
+
now raised.
51
+
52
+
Previously this problem would cause an error only later, when calling the hook.
53
+
54
+
In the unlikely case that you have a hookwrapper that *returns* a generator
55
+
instead of yielding directly, for example:
56
+
57
+
.. code-block:: python
58
+
59
+
defmy_hook_real_implementation(arg):
60
+
print("before")
61
+
yield
62
+
print("after")
63
+
64
+
65
+
@hookimpl(hookwrapper=True)
66
+
defmy_hook(arg):
67
+
return my_hook_implementation(arg)
68
+
69
+
change it to use ``yield from`` instead:
70
+
71
+
.. code-block:: python
72
+
73
+
@hookimpl(hookwrapper=True)
74
+
defmy_hook(arg):
75
+
yield from my_hook_implementation(arg)
76
+
77
+
78
+
- `#309 <https://github.com/pytest-dev/pluggy/issues/309>`_: Add official support for Python 3.9.
0 commit comments